Fixes #713 - Use relative_uri when parsing link headers for pagination Update version and changelog
@@ -1,3 +1,7 @@
+## Version 9.1.1
+
+* Make cursor based pagination return relative uri's when fetching next and previous pages. [#726](https://github.com/Shopify/shopify_api/pull/726)
## Version 9.1.0
* Implements equality operator on `Session` [#714](https://github.com/Shopify/shopify_api/pull/714)
@@ -25,7 +25,7 @@ module ShopifyAPI
url = parts[0][/<(.*)>/, 1]
rel = parts[1][/rel="(.*)"/, 1]&.to_sym
- url = URI.parse(url)
+ url = URI.parse(url).request_uri
LinkHeader.new(url, rel)
end
@@ -1,3 +1,3 @@
module ShopifyAPI
- VERSION = "9.1.0"
+ VERSION = "9.1.1"