aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-11-13 19:55:43 -0800
committerzotlabs <mike@macgirvin.com>2018-11-13 19:55:43 -0800
commitee85784be18c14905568fb259411f490c8d6bd91 (patch)
tree3ed36e3209435adf8c2646c0b87ebaef7c592c82 /include
parent1a2df9c51c4692fce433f483aba1b91738609df7 (diff)
downloadvolse-hubzilla-ee85784be18c14905568fb259411f490c8d6bd91.tar.gz
volse-hubzilla-ee85784be18c14905568fb259411f490c8d6bd91.tar.bz2
volse-hubzilla-ee85784be18c14905568fb259411f490c8d6bd91.zip
stay ahead of the game
Diffstat (limited to 'include')
-rw-r--r--include/network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php
index d37da05f7..183a47105 100644
--- a/include/network.php
+++ b/include/network.php
@@ -153,7 +153,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) {
// Pull out multiple headers, e.g. proxy and continuation headers
// allow for HTTP/2.x without fixing code
- while(preg_match('/^HTTP\/[1-2].+? [1-5][0-9][0-9]/',$base)) {
+ while(preg_match('/^HTTP\/[1-3].+? [1-5][0-9][0-9]/',$base)) {
$chunk = substr($base,0,strpos($base,"\r\n\r\n")+4);
$header .= $chunk;
$base = substr($base,strlen($chunk));
@@ -319,7 +319,7 @@ function z_post_url($url, $params, $redirects = 0, $opts = array()) {
// Pull out multiple headers, e.g. proxy and continuation headers
// allow for HTTP/2.x without fixing code
- while(preg_match('/^HTTP\/[1-2].+? [1-5][0-9][0-9]/',$base)) {
+ while(preg_match('/^HTTP\/[1-3].+? [1-5][0-9][0-9]/',$base)) {
$chunk = substr($base,0,strpos($base,"\r\n\r\n")+4);
$header .= $chunk;
$base = substr($base,strlen($chunk));