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

Changeset 1900

Show
Ignore:
Timestamp:
02/22/08 03:50:09
Author:
fumanchu
Message:

Final fix for #790 (Request body of PUT with no Content-Type is parsed incorrectly). It shouldn't work, but it does.

Files:

Legend:

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

    r1899 r1900  
    691691            # didn't provide a "Content-Type" header. 
    692692            if 'Content-Type' not in self.headers: 
    693                 h = self.headers.copy(
    694                 h['Content-Type'] = 'application/octet-stream
     693                h = http.HeaderMap(self.headers.items()
     694                h['Content-Type'] = '
    695695            else: 
    696696                h = self.headers 

Hosted by WebFaction

Log in as guest/cpguest to create tickets