Skip to content
Myr

Remove .encode("ascii") call from null byte (#1037)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Taneli Hukkinen · committed by GitHub · parent 4d28795 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/_utils.py+1 added-1 removed
92 unmodified lines
93 return f'{name}="{value}"'.encode()949596# Null bytes; no need to recreate these on each call to guess_json_utf97_null = "\x00".encode("ascii") # encoding to ASCII for Python 397_null = b"\x00"98_null2 = _null * 299_null3 = _null * 3100101
310 unmodified lines