Permalink
Browse files

Added response code 303 to possible redirect codes.

  • Loading branch information...
1 parent f3340a0 commit 9fbf0769e16dc431bc8c0a00a1762c97df7d67dc @raid5 raid5 committed Jul 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/restler.js
View
@@ -64,7 +64,7 @@ function Request(uri, options) {
Request.prototype = new process.EventEmitter();
mixin(Request.prototype, {
_isRedirect: function(response) {
- return ([301, 302].indexOf(response.statusCode) >= 0);
+ return ([301, 302, 303].indexOf(response.statusCode) >= 0);
},
_fullPath: function() {
var path = this.url.pathname || '/';

0 comments on commit 9fbf076

Please sign in to comment.