From 564cd968e5008b2511d0d1f5c5c2966d1a0672b2 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 3 Jan 2020 15:38:45 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index cbc5d0c..39d28f5 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -449,7 +449,9 @@ class HttpClient private function explode($output) { [$header, $body] = explode("\r\n\r\n", $output, 2); - if (strpos($body, "\r\n\r\n") !== false) { + if ($header == 'HTTP/1.1 100 Continue') { + [$header, $body] = explode("\r\n\r\n", $body, 2); + } else if (strpos($body, "\r\n\r\n") !== false) { [$header, $body] = explode("\r\n\r\n", $body, 2); } $header = explode("\r\n", $header);