Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cursor based pagination return relative uri's when fetching next and previous pages #726

Merged
merged 1 commit into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/shopify_api/pagination_link_headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def parse_link_header(link_header)
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
end
Expand Down
2 changes: 1 addition & 1 deletion lib/shopify_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ShopifyAPI
VERSION = "9.1.0"
VERSION = "9.1.1"
end