From 069f8be2612ea265f35d524d977c5611a0251438 Mon Sep 17 00:00:00 2001 From: Pol Torrent i Soler Date: Thu, 11 Jan 2024 18:34:33 +0100 Subject: [PATCH] chore: sync Http.class.php with wiris filter --- quizzes/lib/haxe/Http.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quizzes/lib/haxe/Http.class.php b/quizzes/lib/haxe/Http.class.php index 1d196ee3..2f52e569 100644 --- a/quizzes/lib/haxe/Http.class.php +++ b/quizzes/lib/haxe/Http.class.php @@ -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();