[BaseHTTPServer/SimpleHTTPServer] Remove "Server:" header

sebsauvage at gmail.com sebsauvage at gmail.com
Fri Oct 3 15:15:52 CEST 2008


I'm using SimpleHTTPServer (work well) but it always sends "Server"
header in response:
"Server: SimpleHTTP/0.6 Python/2.5.1"

How can I remove that ?

I tried:
self.server_version = ""
self.sys_version  = ""

but the header is still sent, empty.

I there a way to remove the "Server:" header completely ?


More information about the Python-list mailing list