Mercurial > hg > cmmr2012-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
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); |