Skip to content

Commit

Permalink
fix utf8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex MacCaw committed Oct 12, 2014
1 parent ae7013f commit b91c0e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nestful/request.rb
Expand Up @@ -99,7 +99,8 @@ def with_redirection(&block)
raise error unless error.response['Location']
raise RedirectionLoop.new(error.response) if attempts > max_attempts

location = URI.parse(error.response['Location'])
location = error.response['Location'].scrub
location = URI.parse(location)

# Path is relative
unless location.host
Expand Down

0 comments on commit b91c0e2

Please sign in to comment.