Skip navigation
Help

_drupal_set_preferred_header_name

7 bootstrap.inc _drupal_set_preferred_header_name($name = NULL)

Header names are case-insensitive, but for maximum compatibility they should follow "common form" (see RFC 2617, section 4.2).

3 calls to _drupal_set_preferred_header_name()

File

drupal/includes/bootstrap.inc, line 981
Functions that need to be loaded on every Drupal request.

Code

function _drupal_set_preferred_header_name($name = NULL) {
  static $header_names = array();

  if (!isset($name)) {
    return $header_names;
  }
  $header_names[strtolower($name)] = $name;
}