Rest protocols should now accept multipart/form-data posts (see issue #4)
This commit is contained in:
@@ -47,8 +47,10 @@ class RestProtocol(Protocol):
|
|||||||
funcdef = context.funcdef
|
funcdef = context.funcdef
|
||||||
|
|
||||||
if 'Content-Type' in request.headers \
|
if 'Content-Type' in request.headers \
|
||||||
and "application/x-www-form-urlencoded" in \
|
and ("application/x-www-form-urlencoded"
|
||||||
request.headers['Content-Type']:
|
in request.headers['Content-Type']
|
||||||
|
or "multipart/form-data"
|
||||||
|
in request.headers['Content-Type']):
|
||||||
# The params were read from the body, ignoring the body then
|
# The params were read from the body, ignoring the body then
|
||||||
pass
|
pass
|
||||||
elif len(request.params) and request.content_length:
|
elif len(request.params) and request.content_length:
|
||||||
|
|||||||
Reference in New Issue
Block a user