small fix
This commit is contained in:
parent
c1dd4c41c9
commit
57fcc239ba
@ -183,7 +183,9 @@ class AsyncHttpRequest {
|
||||
* @return $this
|
||||
*/
|
||||
public function setHeaders($headers) {
|
||||
$this->headers = $headers;
|
||||
if(is_array($headers)){
|
||||
$this->headers = $headers;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user