Permalink
Browse files

Merge pull request #12 from ashb/patch-1

Fix stubs when using :url => 'example.com' (introduced in pull request #10)
  • Loading branch information...
2 parents c2799f2 + 5b514d7 commit be2015c6ad3dde0988feaf2e0166b65ca16aea9a @hypomodern hypomodern committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/curb-fu/request/test.rb
@@ -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

0 comments on commit be2015c

Please sign in to comment.