]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: only require content-length to be set on non-acl puts
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 23 Sep 2011 22:43:09 +0000 (15:43 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 23 Sep 2011 22:49:39 +0000 (15:49 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/rgw/rgw_rest.cc

index 102483962353a19d6e23768933bd84414f7d1899..63bd6ddb19009f74c5b81709d045045091c929ce 100644 (file)
@@ -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')