bpo-35567: Convert dict of constants to a set (GH-11296)
This commit is contained in:
parent
f06fba5965
commit
6815155384
|
@ -162,9 +162,9 @@ def setup_testing_defaults(environ):
|
||||||
|
|
||||||
|
|
||||||
_hoppish = {
|
_hoppish = {
|
||||||
'connection':1, 'keep-alive':1, 'proxy-authenticate':1,
|
'connection', 'keep-alive', 'proxy-authenticate',
|
||||||
'proxy-authorization':1, 'te':1, 'trailers':1, 'transfer-encoding':1,
|
'proxy-authorization', 'te', 'trailers', 'transfer-encoding',
|
||||||
'upgrade':1
|
'upgrade'
|
||||||
}.__contains__
|
}.__contains__
|
||||||
|
|
||||||
def is_hop_by_hop(header_name):
|
def is_hop_by_hop(header_name):
|
||||||
|
|
Loading…
Reference in New Issue