summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/aggregator/aggregator.parser.inc4
-rw-r--r--modules/openid/openid.module6
-rw-r--r--modules/simpletest/tests/system_test.module3
3 files changed, 7 insertions, 6 deletions
diff --git a/modules/aggregator/aggregator.parser.inc b/modules/aggregator/aggregator.parser.inc
index 9757da1fe..5eb84db42 100644
--- a/modules/aggregator/aggregator.parser.inc
+++ b/modules/aggregator/aggregator.parser.inc
@@ -24,7 +24,7 @@ function aggregator_aggregator_parse($feed) {
// Filter the input data.
if (aggregator_parse_feed($feed->source_string, $feed)) {
- $modified = empty($feed->http_headers['Last-Modified']) ? 0 : strtotime($feed->http_headers['Last-Modified']);
+ $modified = empty($feed->http_headers['last-modified']) ? 0 : strtotime($feed->http_headers['last-modified']);
// Prepare the channel data.
foreach ($channel as $key => $value) {
@@ -43,7 +43,7 @@ function aggregator_aggregator_parse($feed) {
$image = '';
}
- $etag = empty($feed->http_headers['ETag']) ? '' : $feed->http_headers['ETag'];
+ $etag = empty($feed->http_headers['etag']) ? '' : $feed->http_headers['etag'];
// Add parsed data to the feed object.
$feed->link = !empty($channel['LINK']) ? $channel['LINK'] : '';
diff --git a/modules/openid/openid.module b/modules/openid/openid.module
index ff4cd719c..d5c868969 100644
--- a/modules/openid/openid.module
+++ b/modules/openid/openid.module
@@ -437,14 +437,14 @@ function _openid_xrds_discovery($claimed_id) {
$result = drupal_http_request($xrds_url, array('headers' => $headers));
if (!isset($result->error)) {
- if (isset($result->headers['Content-Type']) && preg_match("/application\/xrds\+xml/", $result->headers['Content-Type'])) {
+ if (isset($result->headers['content-type']) && preg_match("/application\/xrds\+xml/", $result->headers['content-type'])) {
// Parse XML document to find URL
$services = _openid_xrds_parse($result->data);
}
else {
$xrds_url = NULL;
- if (isset($result->headers['X-XRDS-Location'])) {
- $xrds_url = $result->headers['X-XRDS-Location'];
+ if (isset($result->headers['x-xrds-location'])) {
+ $xrds_url = $result->headers['x-xrds-location'];
}
else {
// Look for meta http-equiv link in HTML head
diff --git a/modules/simpletest/tests/system_test.module b/modules/simpletest/tests/system_test.module
index 1f1e535c6..5fa2fdc85 100644
--- a/modules/simpletest/tests/system_test.module
+++ b/modules/simpletest/tests/system_test.module
@@ -110,7 +110,8 @@ function system_test_basic_auth_page() {
function system_test_redirect($code) {
$code = (int) $code;
if ($code != 200) {
- header("Location: " . url('system-test/redirect/200', array('absolute' => TRUE)), TRUE, $code);
+ // Header names are case-insensitive.
+ header("locaTION: " . url('system-test/redirect/200', array('absolute' => TRUE)), TRUE, $code);
exit;
}
return '';