]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix returned error code in If-None-Match
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 26 Jul 2010 22:34:31 +0000 (15:34 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 27 Jul 2010 17:28:47 +0000 (10:28 -0700)
src/rgw/rgw_rados.cc

index baa092beb9a651eb05dc102681494020c98ac09c..e4434071807281a12f89a5b53f635e113e228ec5 100644 (file)
@@ -590,8 +590,8 @@ int RGWRados::prepare_get_obj(std::string& bucket, std::string& oid,
     if (if_nomatch) {
       cerr << "etag=" << etag << " " << " if_nomatch=" << if_nomatch << endl;
       if (strcmp(if_nomatch, etag.c_str()) == 0) {
-        err->num = "412";
-        err->code = "PreconditionFailed";
+        err->num = "304";
+        err->code = "NotModified";
         goto done_err;
       }
     }