Skip to content
Snippets Groups Projects

feat: drop send() function so we handle redirects better

Merged Giordon Holtsberg Stark requested to merge feat/dropSend into master

Sometimes when dealing with redirects, python requests calls self.send() multiple times for each redirect, and this is frustrating since all the original code I had modified the response after sending, so instead, move this to a new function called _response_handler() and put this function in self.request() instead. That should handle the "callback" better by only running it on the final returned response, rather than intermediate responses.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply
Loading