Commits

anatoly techtonik  committed 0887869

+ server version patch

  • Participants
  • Parent commits 9f4f5bb

Comments (0)

Files changed (2)

File ____.add-server-version.patch

+# HG changeset patch
+# Parent 96eadbb3aec89f88886f558481c0a1084e0e146c
+# User anatoly techtonik <techtonik@gmail.com>
+add server version to CGIHTTPServer
+
+diff -r 96eadbb3aec8 -r bbf843817c3d Lib/CGIHTTPServer.py
+--- a/Lib/CGIHTTPServer.py	Wed Jul 21 10:14:05 2010 +0300
++++ b/Lib/CGIHTTPServer.py	Wed Jul 21 10:42:52 2010 +0300
+@@ -19,7 +19,7 @@
+ """
+ 
+ 
+-__version__ = "0.4"
++__version__ = "0.5"
+ 
+ __all__ = ["CGIHTTPRequestHandler"]
+ 
+@@ -40,6 +40,7 @@
+     The POST command is *only* implemented for CGI scripts.
+ 
+     """
++    server_version = "CGIHTTP/" + __version__
+ 
+     # Determine platform specifics
+     have_fork = hasattr(os, 'fork')
 # Placed by Bitbucket
 ____.switch_httpservers_tests_to_unittest.patch
 9272.CGIHTTPServer-poisons-os.environ.patch
+____.add-server-version.patch