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

Changeset 1464

Show
Ignore:
Timestamp:
12/02/06 13:08:52
Author:
fumanchu
Message:

Fixed bug in wsgiserver decoding of chunk extensions.

Files:

Legend:

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

    r1459 r1464  
    354354            conn = httplib.HTTPConnection(self.HOST, self.PORT) 
    355355         
    356         # Try a normal chunked request 
    357         body = ("8\r\nxx\r\nxxxx\r\n5\r\nyyyyy\r\n0\r\n" 
     356        # Try a normal chunked request (with extensions) 
     357        body = ("8;key=value\r\nxx\r\nxxxx\r\n5\r\nyyyyy\r\n0\r\n" 
    358358                "Content-Type: application/x-json\r\n\r\n") 
    359359        conn.putrequest("POST", "/upload", skip_host=True) 
  • trunk/cherrypy/wsgiserver.py

    r1460 r1464  
    254254        data = StringIO.StringIO() 
    255255        while True: 
    256             line = self.rfile.readline().strip().split(" ", 1) 
     256            line = self.rfile.readline().strip().split(";", 1) 
    257257            chunk_size = int(line.pop(0), 16) 
    258258            if chunk_size <= 0: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets