diff options
author | Nathan Gass | 2016-11-24 17:21:55 +0100 |
---|---|---|
committer | Nathan Gass | 2016-11-24 17:21:55 +0100 |
commit | 6a1b94db8794ac5c9ae8eaf452a7e6bf53b71e3c (patch) | |
tree | 278c53cc5f837d915f2e70cc5b5e6568d616f9e6 | |
parent | 38d7d4235092acc12bff4d1d8e36c328e2961a37 (diff) | |
download | itools-6a1b94db8794ac5c9ae8eaf452a7e6bf53b71e3c.tar.gz itools-6a1b94db8794ac5c9ae8eaf452a7e6bf53b71e3c.tar.bz2 itools-6a1b94db8794ac5c9ae8eaf452a7e6bf53b71e3c.zip |
handle multiple Continue headers
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |