diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2019-01-07 17:30:46 -0700 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2019-01-07 17:30:46 -0700 |
commit | 6ca8c9e1d2ad86e7e43063557eeb15841474e98a (patch) | |
tree | 3362beb1ad764473ac0b63300144aad76d58bdb2 | |
parent | 61942d2ed17e955750c08165a0bb01c041b37e7a (diff) | |
download | waitress-6ca8c9e1d2ad86e7e43063557eeb15841474e98a.tar.gz |
Remove unnecessary strip()
-rw-r--r-- | waitress/task.py | 2 |
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) |