Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
51 * | 51 * |
52 * @return void | 52 * @return void |
53 */ | 53 */ |
54 public function sendHeaders() | 54 public function sendHeaders() |
55 { | 55 { |
56 if (count($this->headers) || (200 != $this->statusCode)) { | 56 if ($this->headers || (200 != $this->statusCode)) { |
57 $this->canSendHeaders(true); | 57 $this->canSendHeaders(true); |
58 } elseif (200 == $this->statusCode) { | 58 } elseif (200 == $this->statusCode) { |
59 return; | 59 return; |
60 } | 60 } |
61 $httpCodeSent = false; | 61 $httpCodeSent = false; |
131 | 131 |
132 /** | 132 /** |
133 * Can we send headers? | 133 * Can we send headers? |
134 * | 134 * |
135 * @param bool $throw Whether or not to throw an exception if headers have been sent; defaults to false | 135 * @param bool $throw Whether or not to throw an exception if headers have been sent; defaults to false |
136 * @return HttpResponse | 136 * @return bool |
137 * @throws Exception\RuntimeException | 137 * @throws Exception\RuntimeException |
138 */ | 138 */ |
139 public function canSendHeaders($throw = false) | 139 public function canSendHeaders($throw = false) |
140 { | 140 { |
141 $ok = headers_sent($file, $line); | 141 $ok = headers_sent($file, $line); |