]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
radosgw: fix content-length checks
authorSage Weil <sage@newdream.net>
Tue, 27 Sep 2011 04:46:39 +0000 (21:46 -0700)
committerSage Weil <sage@newdream.net>
Tue, 27 Sep 2011 04:48:54 +0000 (21:48 -0700)
commitd340e8e742d119658206928ca50238841b147be5
tree6288e4c6de77a2ccc49b7c6a12b4d7dba41dfc3c
parent30d81fe13baa35101f7fb69e67ceb8b8abfa1d79
radosgw: fix content-length checks

Ignore content-length check if the REQUEST_URI has a trailing ?acl.

(The object_str.find() check was wrong because object_str has the ?whatever
stripped off, and because it returns std::string::npos on failure.)

Signed-off-by: Sage Weil <sage@newdream.net>
src/rgw/rgw_rest.cc