Merge branch 'w01_MDL-43510_m27_test404' of https://github.com/skodak/moodle
[moodle.git] / lib / tests / filelib_test.php
index f5ce378..4b5c20a 100644 (file)
@@ -129,7 +129,7 @@ class core_filelib_testcase extends advanced_testcase {
         $this->assertSame('404', $response->status);
         $this->assertTrue(is_array($response->headers));
         $this->assertRegExp('|^HTTP/1\.[01] 404 Not Found$|', rtrim($response->response_code));
-        $this->assertStringStartsWith('<!DOCTYPE', $response->results);
+        // Do not test the response starts with DOCTYPE here because some servers may return different headers.
         $this->assertSame('', $response->error);
 
         // Invalid url.