Skip to content
Myr

Values can be none #433

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent fe10eeb · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:requests/utils.py+2 added
152 unmodified lines
153 # As discussed in https://github.com/kennethreitz/requests/issues/400154 # latin-1 is the most conservative encoding used on the web. Anyone155 # who needs more can encode to a byte-string before calling156 return headers.encode("latin-1")157 elif headers is None:158 return headers159160 for i, (value, params) in enumerate(headers):161162 _params = []
260 unmodified lines