Skip to content

Commit

Permalink
Fixes #713 - Use relative_uri when parsing link headers for pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo committed May 7, 2020
1 parent 3910772 commit 876a2a2
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 876a2a2

Please sign in to comment.