-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and enhance request handling (#2416)
Bytes-encode all URL-encoded request key-value data. "urlencode" produces a string, but "urlopen" requires bytes, at least for POST requests: #2408 Import only used methods and classes from urllib. Consequently use f-strings instead of %-formatting. Signed-off-by: MichaIng <[email protected]>
- Loading branch information
Showing
1 changed file
with
55 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters