diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/HTTPClient.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 8ff206444..6b3663eaa 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -122,7 +122,7 @@ class HTTPClient { function get($url,$sloppy304=false){ if(!$this->sendRequest($url)) return false; if($this->status == 304 && $sloppy304) return $this->resp_body; - if($this->status != 200) return false; + if($this->status < 200 || $this->status > 206) return false; return $this->resp_body; } @@ -135,7 +135,7 @@ class HTTPClient { */ function post($url,$data){ if(!$this->sendRequest($url,$data,'POST')) return false; - if($this->status != 200) return false; + if($this->status < 200 || $this->status > 206) return false; return $this->resp_body; } |