Skip to content

Commit

Permalink
make the "Server" header stable across Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-york committed Sep 17, 2007
1 parent 3b62961 commit 30ffac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/testbrowser/headers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ library):
The headers can be accessed as a string:

>>> print browser.headers
Server: BaseHTTP/0.3 Python/2.4.4
Server: BaseHTTP
Date: Mon, 17 Sep 2007 10:05:42 GMT
Connection: close
Content-type: text/html
Expand Down
3 changes: 3 additions & 0 deletions src/zope/testbrowser/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@

class TestHandler(BaseHTTPServer.BaseHTTPRequestHandler):

def version_string(self):
return 'BaseHTTP'

def date_time_string(self):
return 'Mon, 17 Sep 2007 10:05:42 GMT'

Expand Down

0 comments on commit 30ffac5

Please sign in to comment.