diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-18 14:28:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-18 14:28:34 +0000 |
commit | 8ea5860b5ed0fe21fe859c938e241e074573e121 (patch) | |
tree | 1fb256117421ac9f449abb1f1fb801b14577f5b4 | |
parent | 3b28636ff95180838de09adaa6f7c2dd036edacf (diff) | |
download | brdo-8ea5860b5ed0fe21fe859c938e241e074573e121.tar.gz brdo-8ea5860b5ed0fe21fe859c938e241e074573e121.tar.bz2 |
- Patch #451668 by mfb: page cache test failing with mod_deflate.
-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 f999f7e6f..bcd8e4cc2 100644 --- a/modules/simpletest/tests/bootstrap.test +++ b/modules/simpletest/tests/bootstrap.test @@ -171,7 +171,7 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase { $this->drupalLogin($user); $this->drupalGet('system-test/set-header', array('query' => array('name' => 'Foo', 'value' => 'bar'))); $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), t('Caching was bypassed.')); - $this->assertFalse($this->drupalGetHeader('Vary'), t('Vary header was not sent.')); + $this->assertTrue(strpos($this->drupalGetHeader('Vary'), 'Cookie') === FALSE, t('Vary: Cookie header was not sent.')); $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'no-cache, must-revalidate, post-check=0, pre-check=0', t('Cache-Control header was sent.')); $this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', t('Expires header was sent.')); $this->assertEqual($this->drupalGetHeader('Foo'), 'bar', t('Custom header was sent.')); |