Commit 7101ff1

mokha <mokha@cisco.com>
2019-02-06 16:55:24
send path instead of full uri. tag: v0.2.4
Some servers do not respond well to sending the full path and rely on the path instead.
1 parent 3275eda
Changed files (3)
lib/net/hippie/client.rb
@@ -106,8 +106,9 @@ module Net
       end
 
       def request_for(type, uri, headers: {}, body: {})
+        uri = URI.parse(uri.to_s)
         final_headers = default_headers.merge(headers)
-        type.new(uri.to_s, final_headers).tap do |x|
+        type.new(uri.path, final_headers).tap do |x|
           x.body = mapper.map_from(final_headers, body) unless body.empty?
         end
       end
lib/net/hippie/version.rb
@@ -2,6 +2,6 @@
 
 module Net
   module Hippie
-    VERSION = '0.2.3'
+    VERSION = '0.2.4'
   end
 end
CHANGELOG.md
@@ -1,4 +1,4 @@
-Version 0.2.3
+Version 0.2.4
 # Changelog
 All notable changes to this project will be documented in this file.
 
@@ -6,7 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+
+## [0.2.4] - 2019-02-06
 ### Changed
+- Send path instead of full uri.
 
 ## [0.2.3] - 2019-02-01
 ### Added
@@ -22,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - authorization header helpers
 
 [Unreleased]: https://github.com/mokhan/net-hippie/compare/v0.2.3...HEAD
+[0.2.4]: https://github.com/mokhan/net-hippie/compare/v0.2.3...v0.2.4
 [0.2.3]: https://github.com/mokhan/net-hippie/compare/v0.2.2...v0.2.3
 [0.2.2]: https://github.com/mokhan/net-hippie/compare/v0.2.1...v0.2.2
 [0.2.1]: https://github.com/mokhan/net-hippie/compare/v0.2.0...v0.2.1