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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/resources/access-control-basic-post-success-no-content-type.php

Issue 22601002: Correct the default Content-Type for XHR Post with string data as per XHR specification. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 $request_origin_value = $_SERVER["HTTP_ORIGIN"];
3
4 if ($_SERVER['REQUEST_METHOD'] == "POST") {
5 if (!is_null($request_origin_value))
6 header("Access-Control-Allow-Origin: $request_origin_value");
7 echo "PASS";
8 } else {
9 echo "FAIL";
10 }
11 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698