From 6a1b94db8794ac5c9ae8eaf452a7e6bf53b71e3c Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Thu, 24 Nov 2016 17:21:55 +0100 Subject: handle multiple Continue headers --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index da2ec54..8152efe 100644 --- a/it_url.class +++ b/it_url.class @@ -341,7 +341,7 @@ function request_curl($p=array()) if ($got) { list($url->header, $url->data) = explode("\r\n\r\n", $got, 2); - if (preg_match('#^(HTTP\S+)\s100\sContinue$#', $url->header)) + while (preg_match('#^(HTTP\S+)\s100\sContinue$#', $url->header)) list($url->header, $url->data) = explode("\r\n\r\n", $url->data, 2); $url->header .= "\r\n\r\n"; -- cgit v1.2.3