Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e6479e48
Commit
e6479e48
authored
Aug 11, 2015
by
Alex Pott
Browse files
Issue
#2549041
by Mile23: Remove deprecated _drupal_set_preferred_header_name()
parent
2066518e
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
e6479e48
...
...
@@ -302,7 +302,6 @@ function _drupal_add_http_header($name, $value, $append = FALSE) {
$headers
=
&
drupal_static
(
'drupal_http_headers'
,
array
());
$name_lower
=
strtolower
(
$name
);
_drupal_set_preferred_header_name
(
$name
);
if
(
$value
===
FALSE
)
{
$headers
[
$name_lower
]
=
FALSE
;
...
...
@@ -343,24 +342,6 @@ function drupal_get_http_header($name = NULL) {
}
}
/**
* Sets the preferred name for the HTTP header.
*
* Header names are case-insensitive, but for maximum compatibility they should
* follow "common form" (see RFC 2616, section 4.2).
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* See https://www.drupal.org/node/2181523.
*/
function
_drupal_set_preferred_header_name
(
$name
=
NULL
)
{
static
$header_names
=
array
();
if
(
!
isset
(
$name
))
{
return
$header_names
;
}
$header_names
[
strtolower
(
$name
)]
=
$name
;
}
/**
* Translates a string to the current language or to a given language.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment