Skip to content

Commit

Permalink
Fix redirections,
Browse files Browse the repository at this point in the history
they were having no effect, the module was ignoring the new location
  • Loading branch information
criloz committed May 31, 2013
1 parent 80d4da5 commit 3040bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Request.prototype.init = function (options) {
self.on('complete', self.callback.bind(self, null))
}

if (self.url) {
if (self.url && !self.uri) {
// People use this property instead all the time so why not just support it.
self.uri = self.url
delete self.url
Expand Down

0 comments on commit 3040bbe

Please sign in to comment.