diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2011-10-27 02:20:51 +0200 |
---|---|---|
committer | Yehuda Sadeh <yehuda@hq.newdream.net> | 2011-10-27 02:20:51 +0200 |
commit | 0c78f0dc80b4e38a4778f3ef44c818035263e299 (patch) | |
tree | 0d94a5e7384b67106afae82f2b4360faae47bc3f /src/rgw/rgw_rest_swift.cc | |
parent | rgw: rgw-admin --skip-zero-entries (diff) | |
download | ceph-0c78f0dc80b4e38a4778f3ef44c818035263e299.tar.xz ceph-0c78f0dc80b4e38a4778f3ef44c818035263e299.zip |
rgw: handle swift PUT with incorrect etag
Diffstat (limited to 'src/rgw/rgw_rest_swift.cc')
-rw-r--r-- | src/rgw/rgw_rest_swift.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index 5706ea2edeb..e5bdefd9f70 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -236,6 +236,12 @@ void RGWDeleteBucket_REST_SWIFT::send_response() flush_formatter_to_req_state(s, s->formatter); } +int RGWPutObj_REST_SWIFT::get_params() +{ + supplied_etag = s->env->get("HTTP_ETAG"); + return 0; +} + void RGWPutObj_REST_SWIFT::send_response() { if (!ret) |