Mercurial > hg > isophonics-drupal-site
diff vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php Thu Feb 28 13:21:36 2019 +0000 @@ -53,7 +53,7 @@ */ public function sendHeaders() { - if (count($this->headers) || (200 != $this->statusCode)) { + if ($this->headers || (200 != $this->statusCode)) { $this->canSendHeaders(true); } elseif (200 == $this->statusCode) { return; @@ -133,7 +133,7 @@ * Can we send headers? * * @param bool $throw Whether or not to throw an exception if headers have been sent; defaults to false - * @return HttpResponse + * @return bool * @throws Exception\RuntimeException */ public function canSendHeaders($throw = false)