|
@@ -71,7 +71,6 @@ def validate_parameter(request: LocalRequest, name: str) -> bytes:
|
|
if content_length > CLIP_SIZE_LIMIT + OVERHEAD:
|
|
if content_length > CLIP_SIZE_LIMIT + OVERHEAD:
|
|
return abort(418, f"Content-Length can not exceed {CLIP_SIZE_LIMIT*3} bytes")
|
|
return abort(418, f"Content-Length can not exceed {CLIP_SIZE_LIMIT*3} bytes")
|
|
|
|
|
|
- print(request.content_type)
|
|
|
|
# TODO: add test for both query/form param
|
|
# TODO: add test for both query/form param
|
|
if 'multipart/form-data' in request.content_type:
|
|
if 'multipart/form-data' in request.content_type:
|
|
# TODO: what about binary data ?
|
|
# TODO: what about binary data ?
|