Skip to content

Commit

Permalink
Add follow-redirects package
Browse files Browse the repository at this point in the history
Handle 302 responses from the HTTP server.
  • Loading branch information
fizzyduck committed Dec 20, 2018
1 parent 4a2987e commit 25b28c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xsd.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ module.exports =
# Get the protocol used to download the file.
protocol = null
if xsdUri.substr(0, 7) is "http://"
protocol = require 'http'
protocol = require 'follow-redirects'.http
else if xsdUri.substr(0, 8) is "https://"
protocol = require 'https'
protocol = require 'follow-redirects'.https

if protocol
# Download the file
Expand Down

0 comments on commit 25b28c5

Please sign in to comment.