small fix

This commit is contained in:
kremsy 2015-11-06 16:45:27 +01:00
parent c1dd4c41c9
commit 57fcc239ba

View File

@ -183,7 +183,9 @@ class AsyncHttpRequest {
* @return $this * @return $this
*/ */
public function setHeaders($headers) { public function setHeaders($headers) {
$this->headers = $headers; if(is_array($headers)){
$this->headers = $headers;
}
return $this; return $this;
} }