Don't send the body of the redirected request to the ServiceWorker.

The upload data in URLRequest is cleared while handing redirects in URLRequest::Redirect().
But ServiceWorkerURLRequestJob doesn't check it while re-sending the FetchEvent to the ServiceWorker.

This causes an error when "fetch(event.request)" is called in the ServiceWorker.
It is because request.body must not be set when request.method is GET.
To fix this problem, this patch adds has_upload() check in ServiceWorkerURLRequestJob::CreateFetchRequest().

BUG=573937
TEST=http/tests/serviceworker/navigation-redirect-body.html

Review URL: https://codereview.chromium.org/1612423002

Cr-Commit-Position: refs/heads/master@{#371196}
4 files changed