Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
| author | Chris Cannam |
|---|---|
| date | Mon, 23 Apr 2018 09:46:53 +0100 |
| parents | 4c8ae668cc8c |
| children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
| 13:5fb285c0d0e3 | 14:1fec387a4317 |
|---|---|
| 28 array('<?', '<%', '<s', '<S'), | 28 array('<?', '<%', '<s', '<S'), |
| 29 array('<?php echo "<?"; ?>', '<?php echo "<%"; ?>', '<?php echo "<s"; ?>', '<?php echo "<S"; ?>'), | 29 array('<?php echo "<?"; ?>', '<?php echo "<%"; ?>', '<?php echo "<s"; ?>', '<?php echo "<S"; ?>'), |
| 30 ); | 30 ); |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * Constructor. | |
| 34 * | |
| 35 * @param array $contentTypes An array of content-type that should be parsed for Surrogate information | 33 * @param array $contentTypes An array of content-type that should be parsed for Surrogate information |
| 36 * (default: text/html, text/xml, application/xhtml+xml, and application/xml) | 34 * (default: text/html, text/xml, application/xhtml+xml, and application/xml) |
| 37 */ | 35 */ |
| 38 public function __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml')) | 36 public function __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml')) |
| 39 { | 37 { |
| 113 } | 111 } |
| 114 } | 112 } |
| 115 | 113 |
| 116 /** | 114 /** |
| 117 * Remove the Surrogate from the Surrogate-Control header. | 115 * Remove the Surrogate from the Surrogate-Control header. |
| 118 * | |
| 119 * @param Response $response | |
| 120 */ | 116 */ |
| 121 protected function removeFromControl(Response $response) | 117 protected function removeFromControl(Response $response) |
| 122 { | 118 { |
| 123 if (!$response->headers->has('Surrogate-Control')) { | 119 if (!$response->headers->has('Surrogate-Control')) { |
| 124 return; | 120 return; |
