summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2019-01-07 17:30:46 -0700
committerBert JW Regeer <bertjw@regeer.org>2019-01-07 17:30:46 -0700
commit6ca8c9e1d2ad86e7e43063557eeb15841474e98a (patch)
tree3362beb1ad764473ac0b63300144aad76d58bdb2
parent61942d2ed17e955750c08165a0bb01c041b37e7a (diff)
downloadwaitress-6ca8c9e1d2ad86e7e43063557eeb15841474e98a.tar.gz
Remove unnecessary strip()
-rw-r--r--waitress/task.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/waitress/task.py b/waitress/task.py
index f910e86..ec4dd7b 100644
--- a/waitress/task.py
+++ b/waitress/task.py
@@ -676,8 +676,6 @@ class WSGITask(Task):
forwarded_port = "443"
if forwarded_host:
- forwarded_host = forwarded_host.strip()
-
if ":" in forwarded_host and forwarded_host[-1] != "]":
host, port = forwarded_host.rsplit(":", 1)
host, port = host.strip(), str(port)