Commit c4d70ed
Changed files (2)
lib
net
hippie
lib/net/hippie/client.rb
@@ -106,10 +106,8 @@ module Net
end
def request_for(type, uri, headers: {}, body: {})
- uri = URI.parse(uri.to_s)
- path = uri.path == '' ? '/' : uri.path
final_headers = default_headers.merge(headers)
- type.new(path || '/', final_headers).tap do |x|
+ type.new(uri.to_s, final_headers).tap do |x|
x.body = mapper.map_from(final_headers, body) unless body.empty?
end
end
CHANGELOG.md
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.2.5] - 2019-02-06
### Changed
-- default to '/' when a path is not found
+- revert change introduced in 0.2.4. See [5.12][https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html]
## [0.2.4] - 2019-02-06
### Changed