Skip to content

Commit

Permalink
Merge pull request #28 from Tri-Wing/master
Browse files Browse the repository at this point in the history
Handle 303 redirects
  • Loading branch information
bearjaws authored Jun 15, 2023
2 parents c724f20 + 99ec719 commit 023951d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/wget.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function download(src, output, options, _parentEvent, redirects) {
if (
res.statusCode === 301 ||
res.statusCode === 302 ||
res.statusCode === 303 ||
res.statusCode === 307
) {
var newLocation = res.headers.location;
Expand Down

0 comments on commit 023951d

Please sign in to comment.