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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-body.php

Issue 1612423002: Don't send the body of the redirected request to the ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated falken's comment Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-body.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-body.php b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-body.php
new file mode 100644
index 0000000000000000000000000000000000000000..91aa2955d38be3cbb037a4450e8429faaedf4ae2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-body.php
@@ -0,0 +1,8 @@
+<?php
+ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
+ header ("HTTP/1.1 302");
+ header("Location: ./navigation-redirect-body.php?redirect");
+ } else {
+ echo urlencode($_SERVER['REQUEST_URI']);
+ }
+?>

Powered by Google App Engine
This is Rietveld 408576698