mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Implement http://bugs.python.org/issue10155 using And Clover's patch, w/added
docs and support for more client-generated CGI variables. (This should complete the WSGI 1.0.1 compliance changes for Python 3.x.)
This commit is contained in:
parent
3c6830ca8f
commit
b6d4a8e4de
5 changed files with 164 additions and 8 deletions
|
@ -131,7 +131,7 @@ class IntegrationTests(TestCase):
|
|||
def check_hello(self, out, has_length=True):
|
||||
self.assertEqual(out,
|
||||
("HTTP/1.0 200 OK\r\n"
|
||||
"Server: WSGIServer/0.1 Python/"+sys.version.split()[0]+"\r\n"
|
||||
"Server: WSGIServer/0.2 Python/"+sys.version.split()[0]+"\r\n"
|
||||
"Content-Type: text/plain\r\n"
|
||||
"Date: Mon, 05 Jun 2006 18:49:54 GMT\r\n" +
|
||||
(has_length and "Content-Length: 13\r\n" or "") +
|
||||
|
@ -187,7 +187,7 @@ class IntegrationTests(TestCase):
|
|||
ver = sys.version.split()[0].encode('ascii')
|
||||
self.assertEqual(
|
||||
b"HTTP/1.0 200 OK\r\n"
|
||||
b"Server: WSGIServer/0.1 Python/" + ver + b"\r\n"
|
||||
b"Server: WSGIServer/0.2 Python/" + ver + b"\r\n"
|
||||
b"Content-Type: text/plain; charset=utf-8\r\n"
|
||||
b"Date: Wed, 24 Dec 2008 13:29:32 GMT\r\n"
|
||||
b"\r\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue