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