Skip to content

Conversation

@crodas
Copy link

@crodas crodas commented Dec 16, 2013

Follow redirect, very simple approach

@crodas crodas mentioned this pull request Dec 16, 2013
@ghost
Copy link

ghost commented Dec 27, 2013

@crodas I see an error with this:

opts =
  from: 'https://github.com/caolan/async/archive/v0.2.5.zip'
  to: '/Users/franklovecchio/test/node_modules/async.zip'

download = wget.download opts.from, opts.to, { }

download.on 'error', (error) -> throw new Error error
download.on 'end', () ->

Error:

wget/lib/wget.js:57
        if (res.header.location) {
                      ^
TypeError: Cannot read property 'location' of undefined

@gnestor
Copy link

gnestor commented Oct 10, 2016

@ghost I'm getting the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants