Support POST requests in Download Manager on iOS.
According to Download.IOSDownloadedFileStatusCode UMA metric there is non-trivial number of download failures with 405 http code (Method Not Allowed). This is because DownloadTask always creates NSURLTask with GET HTTP method regardless of the original HTTP method in the request. This CL adds support for POST request, because this is likely the easiest fix for the problem (I would be surprised if PUT and DELETE methods are used for downloads). We can add support for all HTTP methods later if necessary. Bug: 1030164 Change-Id: Ic3023fee44c580af7e4540b9de15ca957d43d047 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948283 Auto-Submit: Eugene But <eugenebut@chromium.org> Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Commit-Queue: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#721118}
Showing
Please register or sign in to comment