diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-01-12 20:56:13 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-01-12 21:00:46 +0100 |
commit | 299c3423aa580b305c33bbe62c29123815f5419a (patch) | |
tree | a1bd5a0466ee9ea566f8b48236b9a30054fe5b4a /inc | |
parent | b58bcfed1ea9c70e4103c91723a19c845b06f300 (diff) | |
download | rpg-299c3423aa580b305c33bbe62c29123815f5419a.tar.gz rpg-299c3423aa580b305c33bbe62c29123815f5419a.tar.bz2 |
fixed brackets
Diffstat (limited to 'inc')
-rw-r--r-- | inc/HTTPClient.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 7e5e40ee3..7011aa9ed 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -458,11 +458,12 @@ class HTTPClient { if($this->max_bodysize && strlen($r_body) > $this->max_bodysize){ $this->error = 'Allowed response size exceeded'; - if ($this->max_bodysize_abort) + if ($this->max_bodysize_abort){ unset($this->connections[$connectionId]); return false; - else + } else { break; + } } } while ($chunk_size); }else{ @@ -478,11 +479,12 @@ class HTTPClient { $r_size = strlen($r_body); if($this->max_bodysize && $r_size > $this->max_bodysize){ $this->error = 'Allowed response size exceeded'; - if ($this->max_bodysize_abort) + if ($this->max_bodysize_abort) { unset($this->connections[$connectionId]); return false; - else + } else { break; + } } if(isset($this->resp_headers['content-length']) && !isset($this->resp_headers['transfer-encoding']) && |