summaryrefslogtreecommitdiff
path: root/waitress/adjustments.py
diff options
context:
space:
mode:
Diffstat (limited to 'waitress/adjustments.py')
-rw-r--r--waitress/adjustments.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/waitress/adjustments.py b/waitress/adjustments.py
index 5c1879b..f33c570 100644
--- a/waitress/adjustments.py
+++ b/waitress/adjustments.py
@@ -17,7 +17,7 @@ import getopt
import socket
import warnings
-from .utilities import PROXY_HEADERS
+from .proxy_headers import PROXY_HEADERS
from .compat import (
PY2,
WIN,
@@ -27,7 +27,10 @@ from .compat import (
truthy = frozenset(('t', 'true', 'y', 'yes', 'on', '1'))
-KNOWN_PROXY_HEADERS = {header.lower().replace('_', '-') for header in PROXY_HEADERS}
+KNOWN_PROXY_HEADERS = frozenset(
+ header.lower().replace('_', '-')
+ for header in PROXY_HEADERS
+)
def asbool(s):
""" Return the boolean value ``True`` if the case-lowered value of string