Respond with 411 Length Required when missing
This commit is contained in:
parent
f3080daa47
commit
b002e41a00
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ class UploadStorageFallbackHandler(RequestlessExceptionLoggingMixin):
|
|||
if self.is_multipart():
|
||||
if not self._bytes_left:
|
||||
# we don't support requests without a content-length
|
||||
raise tornado.web.HTTPError(400, log_message="No Content-Length supplied")
|
||||
raise tornado.web.HTTPError(411, log_message="No Content-Length supplied")
|
||||
|
||||
# extract the multipart boundary
|
||||
fields = self._content_type.split(";")
|
||||
|
|
|
|||
Loading…
Reference in a new issue