Multipart feature#273
Conversation
79 vs 80
cgi.FieldStorage doesn't likes body parts with Content-Length which were sent via chunked transfer encoding. This fix doesn't saves aiohttp.web from failure for third party clients, but at least it continue work correct for aiohttp one.
|
I like the idea in general. About |
|
Should aiohttp.web use new multipart parser? |
I didn't found any good standard exception that could be used in that place.
It's worth to, but I didn't start work with aiohttp.web much enough (shame on me!) to understand where "to harness horses". Need to implement something on it with multipart data exchange to understand that. |
|
@kxepal i merged your changes. Would you mind to add new section to docs. |
|
@kxepal is it possible to do something like without skipping data: reader = MultipartReader.from_response(resp)
data = {}
part = yield from reader.next()
while part is not None:
data[part.name] = part
part = yield from reader.next()
itemData = yield from data["name"].read() |
|
Oh, great! Will send PR shortly. |
I would like to contribute multipart feature from my aiocouchdb project.
This PR includes introduces following things: