Changeset 223643 in webkit


Ignore:
Timestamp:
Oct 18, 2017 5:46:15 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

update-webkit-auxiliary-libs can't download WebKitAuxiliaryLibrary.zip due to 403 Forbidden
https://bugs.webkit.org/show_bug.cgi?id=178381

Patch by Fujii Hironori <Fujii Hironori> on 2017-10-18
Reviewed by Alexey Proskuryakov.

The web server developer.apple.com seems to reject HTTP requests
without Accept header field.

  • Scripts/update-webkit-dependency: Add 'Accept' header field to requests.
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r223630 r223643  
     12017-10-18  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        update-webkit-auxiliary-libs can't download WebKitAuxiliaryLibrary.zip due to 403 Forbidden
     4        https://bugs.webkit.org/show_bug.cgi?id=178381
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        The web server developer.apple.com seems to reject HTTP requests
     9        without Accept header field.
     10
     11        * Scripts/update-webkit-dependency: Add 'Accept' header field to requests.
     12
    1132017-10-18  Aakash Jain  <aakash_jain@apple.com>
    214
  • trunk/Tools/Scripts/update-webkit-dependency

    r215186 r223643  
    9696# to request just the first byte) so that we don't have to retrieve the entire file.
    9797$ua->max_size(0);
    98 my $response = $ua->get($libsURL, "Range", "bytes=0-0");
     98my $response = $ua->get($libsURL, Accept => '*/*', Range => "bytes=0-0");
    9999$ua->max_size(undef);
    100100
     
    192192print "Downloading $zipFile...\n\n";
    193193print "$libsURL\n";
    194 my $result = getstore($libsURL, File::Spec->catfile($tmpAbsDir, $zipFile));
    195 die "Couldn't download $zipFile!" if is_error($result);
     194my $request = HTTP::Request->new(GET => $libsURL);
     195$request->header(Accept => "*/*");
     196$response = $ua->request($request, File::Spec->catfile($tmpAbsDir, $zipFile));
     197die "Couldn't download $zipFile!" if is_error($response->code);
    196198
    197199my $zip = Archive::Zip->new(File::Spec->catfile($tmpAbsDir, $zipFile));
     
    212214}
    213215
    214 $result = $zip->extractTree("", $tmpAbsDir);
     216my $result = $zip->extractTree("", $tmpAbsDir);
    215217die "Couldn't unzip $zipFile." if $result != AZ_OK;
    216218
Note: See TracChangeset for help on using the changeset viewer.