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

Changeset 1314

Show
Ignore:
Timestamp:
09/02/06 03:51:15
Author:
fumanchu
Message:

Fix for #527 (fragments in Request-URI). The builtin WSGI server now returns "400 Bad Request".

Files:

Legend:

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

    r1296 r1314  
    7676        # path may be an abs_path (including "http://host.domain.tld"); 
    7777        scheme, location, path, params, qs, frag = urlparse(path) 
     78         
     79        if frag: 
     80            self.simple_response("400 Bad Request", 
     81                                 "Illegal #fragment in Request-URI.") 
     82            return 
     83         
    7884        if scheme: 
    7985            self.environ["wsgi.url_scheme"] = scheme 

Hosted by WebFaction

Log in as guest/cpguest to create tickets