Skip to content

Commit

Permalink
#2768: resumptionToken should not encode itself
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromsl committed Apr 7, 2022
1 parent 557c620 commit ad08770
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/oai/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ def get_token_context(self, context):
}

def encode_token(self, context):
token_data = self.get_token_context(context)
token_data = {}
for key, value in self.request.GET.items():
if key != "verb": # verb is an exception as per OAI spec
# verb is an exception as per OAI spec
if key not in {'resumptionToken', "verb"}:
token_data[key] = value
token_data.update(self.get_token_context(context))

return quote(urlencode(token_data))

Expand Down

0 comments on commit ad08770

Please sign in to comment.