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

Changeset 1902

Show
Ignore:
Timestamp:
02/24/08 00:44:33
Author:
fumanchu
Message:

It'd be nice to allow applications to know whether Content-Type and Content-Length were provided or just empty.

Files:

Legend:

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

    r1871 r1902  
    439439         
    440440        ct = environ.pop("HTTP_CONTENT_TYPE", None) 
    441         if ct
     441        if ct is not None
    442442            environ["CONTENT_TYPE"] = ct 
    443443        cl = environ.pop("HTTP_CONTENT_LENGTH", None) 
    444         if cl
     444        if cl is not None
    445445            environ["CONTENT_LENGTH"] = cl 
    446446     

Hosted by WebFaction

Log in as guest/cpguest to create tickets