Permalink
Browse files

Do not attempt to parse redirects

  • Loading branch information...
1 parent dd22fbf commit 30ee1c733cfea091f60b18a51d01eab1d0cc6f30 Christopher Burnett committed with Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/twitter/response/parse_json.rb
@@ -20,7 +20,7 @@ def parse(body)
def on_complete(env)
if respond_to?(:parse)
- env[:body] = parse(env[:body]) unless [204, 304].include?(env[:status])
+ env[:body] = parse(env[:body]) unless [204, 301, 302, 304].include?(env[:status])
end
end

0 comments on commit 30ee1c7

Please sign in to comment.