Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: LayoutTests/http/tests/inspector/network/resources/json.php

Issue 94893003: Support for json media types as (non-image) mime types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test via synthetic NetworkRequest Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/network/resources/json.php
diff --git a/LayoutTests/http/tests/inspector/network/resources/json.php b/LayoutTests/http/tests/inspector/network/resources/json.php
index e5344a5afe137aeea9a05205c22ff48c38afb6cb..caf6dc3cb84388cec83dbf1de148355453320b3f 100644
--- a/LayoutTests/http/tests/inspector/network/resources/json.php
+++ b/LayoutTests/http/tests/inspector/network/resources/json.php
@@ -1,5 +1,4 @@
<?php
- header("Content-Type: application/json");
+header("Content-Type: " . (isset($_GET["type"]) ? $_GET["type"] : "application/json"));
?>
{"number": "42"}
-

Powered by Google App Engine
This is Rietveld 408576698