Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fix for empty path in net_http driver
Browse files Browse the repository at this point in the history
  • Loading branch information
dredozubov committed Sep 5, 2013
1 parent 77bb996 commit c1f9b1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/handsoap/http/drivers/net_http_driver.rb
Expand Up @@ -14,8 +14,12 @@ def send_http_request(request)
unless url.kind_of? ::URI::Generic
url = ::URI.parse(url)
end

::URI::Generic.send(:public, :path_query) # hackety hack
path = url.path_query
# Net::HTTP will blow otherwise
path = '/' if path.blank?

http_request = case request.http_method
when :get
Net::HTTP::Get.new(path)
Expand Down

0 comments on commit c1f9b1d

Please sign in to comment.