Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit be2015c6ad3dde0988feaf2e0166b65ca16aea9a 2 parents c2799f2 + 5b514d7
Matt Wilson hypomodern authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/curb-fu/request/test.rb
2  lib/curb-fu/request/test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.