Skip to content

Commit c0e0653

Browse files
committed
urlencode output is always ascii
This is a smidge faster
1 parent 119b822 commit c0e0653

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mureq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _prepare_body(body, form, json, headers) -> bytes | None:
353353

354354
if form is not None:
355355
_setdefault_header(headers, 'Content-Type', _FORM_CONTENTTYPE)
356-
return urllib.parse.urlencode(form, doseq=True).encode('utf-8')
356+
return urllib.parse.urlencode(form, doseq=True).encode('ascii')
357357

358358
return None
359359

0 commit comments

Comments
 (0)