Issue #168 resolved

"Server" header

Anonymous created an issue

If we set the "Server" header in cpg.response.headerMap, the current trunk implementation inside _cpwsgi.py sends two "Server" headers.

This happens because BaseHTTPRequestHandler.send_response unconditionally sends the "Server" header based on the result of BaseHTTPRequestHandler.version_string(). WSGIRequestHandler class should override the version_string method and return the "Server" header if the CP handler sets it.

The same applies to the "Date" header (override date_time_string()).

Reported by Rui Lopes

Comments (4)

  1. Log in to comment