diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-30 18:36:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-30 18:36:02 +0000 |
commit | 7178f6b17398b10105f8246b11c8d10b14ae39a6 (patch) | |
tree | ce4bc701c146ae17f4e38190565c4839c22956ff /modules/aggregator/tests | |
parent | a8f8a26f6d77f6aca8821e28e66ea253687d7d59 (diff) | |
download | brdo-7178f6b17398b10105f8246b11c8d10b14ae39a6.tar.gz brdo-7178f6b17398b10105f8246b11c8d10b14ae39a6.tar.bz2 |
- Patch #451604 by brianV, sun | Dries, c960657: rename drupal_set_header().
Diffstat (limited to 'modules/aggregator/tests')
-rw-r--r-- | modules/aggregator/tests/aggregator_test.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/aggregator/tests/aggregator_test.module b/modules/aggregator/tests/aggregator_test.module index 6596ec496..a13c47208 100644 --- a/modules/aggregator/tests/aggregator_test.module +++ b/modules/aggregator/tests/aggregator_test.module @@ -33,21 +33,21 @@ function aggregator_test_feed($use_last_modified = FALSE, $use_etag = FALSE) { // Send appropriate response. We respond with a 304 not modified on either // etag or on last modified. if ($use_last_modified) { - drupal_set_header('Last-Modified', gmdate(DATE_RFC1123, $last_modified)); + drupal_add_http_header('Last-Modified', gmdate(DATE_RFC1123, $last_modified)); } if ($use_etag) { - drupal_set_header('ETag', $etag); + drupal_add_http_header('ETag', $etag); } // Return 304 not modified if either last modified or etag match. if ($last_modified == $if_modified_since || $etag == $if_none_match) { - drupal_set_header('304 Not Modified'); + drupal_add_http_header('304 Not Modified'); return; } // The following headers force validation of cache: - drupal_set_header('Expires', 'Sun, 19 Nov 1978 05:00:00 GMT'); - drupal_set_header('Cache-Control', 'must-revalidate'); - drupal_set_header('Content-Type', 'application/rss+xml; charset=utf-8'); + drupal_add_http_header('Expires', 'Sun, 19 Nov 1978 05:00:00 GMT'); + drupal_add_http_header('Cache-Control', 'must-revalidate'); + drupal_add_http_header('Content-Type', 'application/rss+xml; charset=utf-8'); // Read actual feed from file. $file_name = DRUPAL_ROOT . '/' . drupal_get_path('module', 'aggregator') . '/tests/aggregator_test_rss091.xml'; |