Permalink
Browse files

Removing sha from options when getting next page

  • Loading branch information...
1 parent d50a8ad commit a289f93d7e1a4355f7ed61b3249870240a5e145e @aubreyrhodes committed Feb 17, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/octokit/request.rb
View
@@ -42,6 +42,7 @@ def request(method, path, options, version, authenticate, raw, force_urlencoded)
if raw
response
elsif auto_traversal && ( next_url = links(response)["next"])
+ options.delete(:sha)
response.body + request(method, next_url.gsub(/[&?]sha=.*(&|\z)/, ''), options, version, authenticate, raw, force_urlencoded)
else
response.body

0 comments on commit a289f93

Please sign in to comment.