Bug 1424076 - P2 adjust Origin header comparison for POST request r=Honza

We'd like to enable the Origin header for all eligible reqeusts, which include POST.
The test should be adjusted.

Differential Revision: https://phabricator.services.mozilla.com/D33382

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Junior Hsu 2019-07-09 17:15:21 +00:00
Родитель 56de7ee333
Коммит 6aa8489ec9
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -48,6 +48,9 @@ add_task(async function() {
"--data " + quote(POST_PAYLOAD),
header("Content-Type: text/plain;charset=UTF-8"),
];
const ORIGIN_RESULT = [
header("Origin: http://example.com"),
];
const HEAD_PARTIAL_RESULT = ["-I"];
@ -85,6 +88,7 @@ add_task(async function() {
...BASE_RESULT,
...COOKIE_PARTIAL_RESULT,
...POST_PARTIAL_RESULT,
...ORIGIN_RESULT,
]);
// HEAD request