Skip to content
Snippets Groups Projects
Commit 299c3423 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed brackets

parent b58bcfed
No related branches found
No related tags found
No related merge requests found
......@@ -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']) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment