Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
e6479e48
Commit
e6479e48
authored
Aug 11, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2549041
by Mile23: Remove deprecated _drupal_set_preferred_header_name()
parent
2066518e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
core/includes/bootstrap.inc
core/includes/bootstrap.inc
+0
-19
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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