Changeset 1464
- Timestamp:
- 12/02/06 13:08:52
- Files:
-
- trunk/cherrypy/test/test_conn.py (modified) (1 diff)
- trunk/cherrypy/wsgiserver.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_conn.py
r1459 r1464 354 354 conn = httplib.HTTPConnection(self.HOST, self.PORT) 355 355 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" 358 358 "Content-Type: application/x-json\r\n\r\n") 359 359 conn.putrequest("POST", "/upload", skip_host=True) trunk/cherrypy/wsgiserver.py
r1460 r1464 254 254 data = StringIO.StringIO() 255 255 while True: 256 line = self.rfile.readline().strip().split(" ", 1)256 line = self.rfile.readline().strip().split(";", 1) 257 257 chunk_size = int(line.pop(0), 16) 258 258 if chunk_size <= 0:

