[BaseHTTPServer/SimpleHTTPServer] Remove "Server:" header
Gary M. Josack
gary at byoteki.com
Fri Oct 3 10:11:34 EDT 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:
> Hello.
>
>
> 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 ?
>
>
>
> Thanks.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list