Changeset 223643 in webkit
- Timestamp:
- Oct 18, 2017 5:46:15 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r223630 r223643 1 2017-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 1 13 2017-10-18 Aakash Jain <aakash_jain@apple.com> 2 14 -
trunk/Tools/Scripts/update-webkit-dependency
r215186 r223643 96 96 # to request just the first byte) so that we don't have to retrieve the entire file. 97 97 $ua->max_size(0); 98 my $response = $ua->get($libsURL, "Range","bytes=0-0");98 my $response = $ua->get($libsURL, Accept => '*/*', Range => "bytes=0-0"); 99 99 $ua->max_size(undef); 100 100 … … 192 192 print "Downloading $zipFile...\n\n"; 193 193 print "$libsURL\n"; 194 my $result = getstore($libsURL, File::Spec->catfile($tmpAbsDir, $zipFile)); 195 die "Couldn't download $zipFile!" if is_error($result); 194 my $request = HTTP::Request->new(GET => $libsURL); 195 $request->header(Accept => "*/*"); 196 $response = $ua->request($request, File::Spec->catfile($tmpAbsDir, $zipFile)); 197 die "Couldn't download $zipFile!" if is_error($response->code); 196 198 197 199 my $zip = Archive::Zip->new(File::Spec->catfile($tmpAbsDir, $zipFile)); … … 212 214 } 213 215 214 $result = $zip->extractTree("", $tmpAbsDir);216 my $result = $zip->extractTree("", $tmpAbsDir); 215 217 die "Couldn't unzip $zipFile." if $result != AZ_OK; 216 218
Note: See TracChangeset
for help on using the changeset viewer.