Skip to content

Commit

Permalink
Merge pull request gdi#12 from ashb/patch-1
Browse files Browse the repository at this point in the history
Fix stubs when using :url => 'example.com' (introduced in pull request gdi#10)
  • Loading branch information
hypomodern committed Jul 27, 2012
2 parents c2799f2 + 5b514d7 commit be2015c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/curb-fu/request/test.rb
Expand Up @@ -109,7 +109,7 @@ def process_headers(headers)

def get_interface(url)
if url.is_a?(Hash)
host = url[:host]
host = url[:host] || parse_hostname(url[:url])
else
host = parse_hostname(url)
end
Expand Down

0 comments on commit be2015c

Please sign in to comment.