diff vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents 5311817fb629
children
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php	Thu Feb 28 13:11:55 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)