[BaseHTTPServer/SimpleHTTPServer] Remove "Server:" header
Gary M. Josack
gary at byoteki.com
Fri Oct 3 16:11:34 CEST 2008
you've got ?self.send_header('Server', self.version_string()) in the
send_response method of the BaseHTTPRequestHandler class in the
BaseHTTPServer module. Long story, short, it's going to be a lot of work
to get rid of.
sebsauvage at gmail.com wrote:
> 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