Skip to content
Closed
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: 1 addition & 3 deletions lib/oktakit/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ def request(method, path, data:, query:, headers:, accept:, content_type:, pagin
uri = URI::DEFAULT_PARSER.escape("/api/v1" + path.to_s)
@last_response = resp = sawyer_agent.call(method, uri, data, options)

response = [resp.data, resp.status]
response << absolute_to_relative_url(resp.rels[:next]) if paginate
response
[resp.data, resp.status, paginate ? absolute_to_relative_url(resp.rels[:next]) : nil]
end

def sawyer_agent
Expand Down
Loading