Permalink
Browse files

Added option for setting followAllRedirects to allow redirects on POS…

…T requests
  • Loading branch information...
1 parent f7396ca commit d0c82633974f762c20e7ff3140d786b025eeacec @irony irony committed Mar 28, 2012
Showing with 13 additions and 0 deletions.
  1. +12 −0 .project
  2. +1 −0 lib/node.io/request.js
View
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>node-io-iteam</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ <nature>com.aptana.projects.webnature</nature>
+ </natures>
+</projectDescription>
View
@@ -272,6 +272,7 @@ Job.prototype.doRequest = function (method, resource, body, headers, callback, p
headers: headers,
body: body,
maxRedirects: this.options.redirects,
+ followAllRedirects:this.options.followAllRedirects,
encoding: this.options.encoding,
pool: false
}

0 comments on commit d0c8263

Please sign in to comment.