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
*/
public function setHeaders($headers) {
if(is_array($headers)){
$this->headers = $headers;
}
return $this;
}