function DrupalHTTPRedirectTest::testNoHostChange
File
-
modules/
simpletest/ tests/ common.test, line 1319
Class
- DrupalHTTPRedirectTest
- Unit tests for processing of http redirects.
Code
public function testNoHostChange() {
$url = 'http://example.com/foo';
$location = 'http://example.com/bar';
$this->assertFalse(_drupal_should_strip_sensitive_headers_on_http_redirect($url, $location), 'Sensitive headers are not stripped without change of host.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.