Skip to content

Commit

Permalink
fix: exception on nil location header. Fixes #70
Browse files Browse the repository at this point in the history
  • Loading branch information
gottfrois committed Aug 23, 2015
1 parent 1b360cc commit 7366db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/link_thumbnailer/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def perform_request
response.body
when ::Net::HTTPRedirection
call(
resolve_relative_url(response['location']),
resolve_relative_url(response['location'].to_s),
redirect_count + 1,
headers
)
Expand Down

0 comments on commit 7366db0

Please sign in to comment.