small fix
This commit is contained in:
1 parent
c1dd4c41c9
commit
57fcc239ba
1 file changed
+2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user