• Eugene But's avatar
    Support POST requests in Download Manager on iOS. · 2243d4d1
    Eugene But authored
    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: default avatarSylvain Defresne <sdefresne@chromium.org>
    Commit-Queue: Eugene But <eugenebut@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#721118}
    2243d4d1
download_task_impl.mm 17.7 KB