summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorNathan Gass2016-09-28 16:56:01 +0200
committerNathan Gass2016-09-28 16:56:01 +0200
commit86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0 (patch)
tree4b81e6f911b599f9937d89dfae7c3fcde672accf /it_url.class
parent86e59adbac6783c9c5af386aeb1f48b9ef1575cb (diff)
downloaditools-86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0.tar.gz
itools-86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0.tar.bz2
itools-86be744386d1b2b7ecb3dee7cf4274bd1a4ea9f0.zip
handle continue header in curl result
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 2 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index 4552cf5..f9b9e34 100644
--- a/it_url.class
+++ b/it_url.class
@@ -339,6 +339,8 @@ 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))
+ list($url->header, $url->data) = explode("\r\n\r\n", $url->data, 2);
$url->header .= "\r\n\r\n";
$url->parse_http_header($url->header);