Update to Drupal 8.2.4. For more information, see https://www.drupal.org/project/drupal/releases/8.2.4
This commit is contained in:
parent
0a95b8440e
commit
8544b60b39
284 changed files with 12980 additions and 3199 deletions
|
|
@ -419,9 +419,13 @@ class HtmlResponseAttachmentsProcessor implements AttachmentsResponseProcessorIn
|
|||
|
||||
if ($should_add_header) {
|
||||
// Also add a HTTP header "Link:".
|
||||
$href = '<' . Html::escape($attributes['href'] . '>');
|
||||
$href = '<' . Html::escape($attributes['href']) . '>';
|
||||
unset($attributes['href']);
|
||||
$attached['http_header'][] = ['Link', $href . drupal_http_header_attributes($attributes), TRUE];
|
||||
if ($param = drupal_http_header_attributes($attributes)) {
|
||||
$href .= ';' . $param;
|
||||
}
|
||||
|
||||
$attached['http_header'][] = ['Link', $href, FALSE];
|
||||
}
|
||||
}
|
||||
return $attached;
|
||||
|
|
|
|||
Reference in a new issue