summaryrefslogtreecommitdiff
path: root/waitress
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-09-06 02:05:12 -0700
committerSteve Piercy <web@stevepiercy.com>2018-09-06 02:05:12 -0700
commitd62ea44a0272af0c6356db64365f7d4637675b51 (patch)
tree20e0dd204de2eb84b06d5a6b2631d054e636e7d5 /waitress
parent2aa8a27e8011679074da6d81efcee2dd37c4dd14 (diff)
downloadwaitress-d62ea44a0272af0c6356db64365f7d4637675b51.tar.gz
run linkcheck and fix redirects, broken links
Diffstat (limited to 'waitress')
-rw-r--r--waitress/parser.py2
-rw-r--r--waitress/tests/test_functional.py2
-rw-r--r--waitress/tests/test_parser.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/waitress/parser.py b/waitress/parser.py
index 6d2f340..4106b56 100644
--- a/waitress/parser.py
+++ b/waitress/parser.py
@@ -274,7 +274,7 @@ def get_header_lines(header):
for line in lines:
if line.startswith((b' ', b'\t')):
if not r:
- # http://corte.si/posts/code/pathod/pythonservers/index.html
+ # https://corte.si/posts/code/pathod/pythonservers/index.html
raise ParsingError('Malformed header line "%s"' % tostr(line))
r[-1] += line
else:
diff --git a/waitress/tests/test_functional.py b/waitress/tests/test_functional.py
index 59ef4e4..0571ce6 100644
--- a/waitress/tests/test_functional.py
+++ b/waitress/tests/test_functional.py
@@ -155,7 +155,7 @@ class EchoTests(object):
self.assertTrue(headers.get('date'))
def test_bad_host_header(self):
- # http://corte.si/posts/code/pathod/pythonservers/index.html
+ # https://corte.si/posts/code/pathod/pythonservers/index.html
to_send = ("GET / HTTP/1.0\n"
" Host: 0\n\n")
to_send = tobytes(to_send)
diff --git a/waitress/tests/test_parser.py b/waitress/tests/test_parser.py
index ecb6606..801f784 100644
--- a/waitress/tests/test_parser.py
+++ b/waitress/tests/test_parser.py
@@ -286,7 +286,7 @@ class Test_get_header_lines(unittest.TestCase):
self.assertEqual(result, [b'slam\tslim'])
def test_get_header_lines_malformed(self):
- # http://corte.si/posts/code/pathod/pythonservers/index.html
+ # https://corte.si/posts/code/pathod/pythonservers/index.html
from waitress.parser import ParsingError
self.assertRaises(ParsingError,
self._callFUT, b' Host: localhost\r\n\r\n')