benoitc
c785be0780
new parser using StringIO, faster than concatenate strings. Lot of fixes
...
in TeeInput.
2010-03-06 20:47:39 +01:00
jbergstroem
e5e6b70895
Fix failed tests due to lack of passing config to a Request
2010-03-03 15:44:54 +08:00
benoitc
ea02c5e073
this seems to fix problem with upload. Tested with the django app
2010-02-28 22:46:35 +01:00
benoitc
d92364af71
new read_partial function. We also now use buffer in parser.
2010-02-28 22:46:35 +01:00
benoitc
c557ecc93b
the way to get full path is "SCHEME://SERVER_NAME:SERVER_PORT" +
...
SCRIPT_NAME + PATH_INFO
2010-02-18 11:31:24 +01:00
Benoit Chesneau
87336be46b
remove unused import/var and some fixes
2010-02-16 14:24:40 +01:00
Paul J. Davis
47776417d5
Repeated headers request test.
...
Test the environ produced by a request object for repeated headers.
2010-02-10 11:01:14 -05:00
Paul J. Davis
588b48b2cd
Comma separate repeated request headers.
...
RFC 2616 says that only headers that are allowed to have comma separated
values are acceptable for repetition. Though it doesn't specify an error
condition for that situation. I reckon the cleanest way would be to list
the headers that are acceptable for repetition, and return a 400 Bad
Request.
2010-02-10 10:55:09 -05:00
Paul J. Davis
9e717b8f9c
Refactoring the worker loop.
...
Accidentally got a bit carried away.
2010-01-31 17:45:26 -05:00
Eric Florenzano
036735b456
Used PyFlakes to detect and fix unneeded imports.
2010-01-21 13:23:35 -08:00
Benoit Chesneau
2f959f9251
typo
2010-01-21 01:20:09 +01:00
Benoit Chesneau
ec644bdf90
rename http_parser.py to parser.py we are already in http module
2010-01-21 01:13:12 +01:00
Benoit Chesneau
6da023a7da
clean a litle the rep
2010-01-21 00:51:48 +01:00
Benoit Chesneau
b568852465
add request unitests. fix TeeInput & parser
2010-01-21 00:18:42 +01:00
Benoit Chesneau
ba6db08825
add license headers to tests
2010-01-20 22:01:45 +01:00
Benoit Chesneau
db01c210a2
Set blocking to 0 back since we prevented inheritence of the socket the socket.
2010-01-20 18:06:35 +01:00
Benoit Chesneau
bfeb4f9416
fix chunked encoding and add tests
2010-01-20 16:21:20 +01:00
Benoit Chesneau
d4ae13cde0
forgot to commit tests
2010-01-20 15:21:57 +01:00