Skip to content

Commit

Permalink
chore: sync Http.class.php with wiris filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Torrent i Soler committed Jan 11, 2024
1 parent bf44b6b commit 069f8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quizzes/lib/haxe/Http.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function customRequest($post, $api, $sock = null, $method = null) {
$this->onError("Invalid URL");
return;
}
$secure = $url_regexp->matched(1) === "https://";
$secure = $url_regexp->matched(1) === "https://" && _hx_field(_hx_qtype("haxe.Http"), "PROXY") === null;
if($sock === null) {
if($secure) {
$sock = new php_net_SslSocket();
Expand Down

0 comments on commit 069f8be

Please sign in to comment.