From 1a1e1abc667bdcebf82ab5832d2c3130a5e60fce Mon Sep 17 00:00:00 2001 From: shiorap <35023689+shiorap@users.noreply.github.com> Date: Thu, 29 Nov 2018 15:29:23 -0600 Subject: [PATCH] Update Http.php support when behind proxy server that returns HTTP/1.1 200 Connection established --- Services/Zencoder/Http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/Zencoder/Http.php b/Services/Zencoder/Http.php index da44aeb..669c93d 100644 --- a/Services/Zencoder/Http.php +++ b/Services/Zencoder/Http.php @@ -106,7 +106,7 @@ public function __call($name, $args) { if ($i >= count($parts) - 2) { break; // don't bother continuing if there's no head or body candidate to come } - if ($part == 'HTTP/1.1 100 Continue') { + if ($part == 'HTTP/1.1 100 Continue' || $part == 'HTTP/1.1 200 Connection established') { $head = $parts[$i + 1]; $body = implode("\r\n\r\n", array_slice($parts, $i + 2)); }