Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making sure the ? in url doesn't exist already

  • Loading branch information...
commit 135bf13e18b0d8dc0ea2d9915e1fb83fd604581f 1 parent 8b4e7e9
@yportnoy yportnoy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/amazon_seller_central/inventory_page.rb
View
2  lib/amazon_seller_central/inventory_page.rb
@@ -18,7 +18,7 @@ def next_page
@next_page ||= begin
raise NoNextPageAvailableError unless has_next?
- next_page = @agent.agent.get("#{@uri_base}?searchPageOffset=#{@page_no + 1}")
+ next_page = @agent.agent.get("#{@uri_base}#{(@uri_base =~ /\?/) ? '&': '?'}searchPageOffset=#{@page_no + 1}")
InventoryPage.new(
:page => next_page,
:page_no => (@page_no + 1),
Please sign in to comment.
Something went wrong with that request. Please try again.