mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
rgw: only require content-length to be set on non-acl puts
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
parent
4aa90a5e68
commit
720788c052
@ -721,7 +721,7 @@ int RGWHandler_REST::preprocess(struct req_state *s, FCGX_Request *fcgx)
|
||||
init_entities_from_header(s);
|
||||
switch (s->op) {
|
||||
case OP_PUT:
|
||||
if (s->object) {
|
||||
if (s->object && !s->object_str.find("?acl")) {
|
||||
if (!s->length)
|
||||
ret = -ERR_LENGTH_REQUIRED;
|
||||
else if (*s->length == '\0')
|
||||
|
Loading…
Reference in New Issue
Block a user