diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-04 22:44:01 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-04 22:44:01 -0500 |
commit | df8de735c3b998af03fc34c493661e2f7c4019b0 (patch) | |
tree | 7ef325b8c3daf1db9a83dac55f70a4b39a61dd33 /modules/simpletest | |
parent | 9559160204f1c4e72e145cf95d61bf61e4bd1fcf (diff) | |
download | brdo-df8de735c3b998af03fc34c493661e2f7c4019b0.tar.gz brdo-df8de735c3b998af03fc34c493661e2f7c4019b0.tar.bz2 |
Issue #1918820 by neclimdul, typhonius, girishmuraly, pwolanin | 0x534B41: Fixed HTTP header date formats to follow RFC 7231 rather than RFC 1123.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/bootstrap.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test index 5dcde3258..f723c6301 100644 --- a/modules/simpletest/tests/bootstrap.test +++ b/modules/simpletest/tests/bootstrap.test @@ -144,7 +144,7 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase { $this->assertResponse(200, 'Conditional request without If-None-Match returned 200 OK.'); $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.'); - $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC1123, strtotime($last_modified) + 1), 'If-None-Match: ' . $etag)); + $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC7231, strtotime($last_modified) + 1), 'If-None-Match: ' . $etag)); $this->assertResponse(200, 'Conditional request with new a If-Modified-Since date newer than Last-Modified returned 200 OK.'); $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.'); |