Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Commit

Permalink
Revert "disable cert validation until dwd fixes intermediate certs"
Browse files Browse the repository at this point in the history
This reverts commit a0b8ac3.
  • Loading branch information
paresy committed Sep 5, 2018
1 parent b61ea39 commit 8f15992
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Unwetterzentrale/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,11 @@ public function RequestInfo()

//Download picture
$opts = array(
//Remove this after DWD has fixed their missing intermediate certificates!
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false
),
'http'=>array(
'method'=>"GET",
'max_redirects'=>1,
'header'=>"User-Agent: "."Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
)
'http'=>array(
'method'=>"GET",
'max_redirects'=>1,
'header'=>"User-Agent: "."Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"
)
);
$context = stream_context_create($opts);

Expand Down

0 comments on commit 8f15992

Please sign in to comment.