Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2043

Show
Ignore:
Timestamp:
09/27/08 17:28:11
Author:
fumanchu
Message:

Allow overriding of SERVER_SOFTWARE (and therefore the 'Server' response header).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/wsgiserver/__init__.py

    r2042 r2043  
    14501450            # SERVER_SOFTWARE is common for IIS. It's also helpful for 
    14511451            # us to pass a default value for the "Server" response header. 
    1452             environ["SERVER_SOFTWARE"] = "%s WSGI Server" % self.version 
     1452            if environ.get("SERVER_SOFTWARE") is None: 
     1453                environ["SERVER_SOFTWARE"] = "%s WSGI Server" % self.version 
    14531454            # set a non-standard environ entry so the WSGI app can know what 
    14541455            # the *real* server protocol is (and what features to support). 

Hosted by WebFaction

Log in as guest/cpguest to create tickets