Index: chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js |
diff --git a/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js b/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js |
index 0d791d499fb70892b5e4c86c2f575639093a36bc..347a15006955c6b7e2a3563f465843a9768e83eb 100644 |
--- a/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js |
+++ b/chrome/test/data/extensions/api_test/streams_private/handle_mime_type/background.js |
@@ -12,7 +12,8 @@ chrome.streamsPrivate.onExecuteMimeTypeHandler.addListener( |
// the MIME type 'application/msword' means the test has succeeded. |
if (params.mimeType == 'application/msword') { |
var headers = params.responseHeaders; |
- if (headers['Content-Type'] != 'application/msword') { |
+ if (params.originalUrl.substring(0, 5) != 'file:' && |
+ headers['Content-Type'] != 'application/msword') { |
chrome.test.notifyFail( |
'HTTP request header did not contain expected attributes.'); |
hasFailed = true; |