]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix error status code
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 23 Jul 2010 21:01:47 +0000 (14:01 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 27 Jul 2010 17:28:46 +0000 (10:28 -0700)
src/rgw/rgw_rados.cc

index cda70ab0c2d991a4240ad89015b55fa21fe27f63..0b1b831ee2e2365a37a0a000f1c761af9a123153 100644 (file)
@@ -556,7 +556,7 @@ int RGWRados::prepare_get_obj(std::string& bucket, std::string& oid,
   if (mod_ptr) {
     if (mtime < *mod_ptr) {
       err->num = "304";
-      err->code = "PreconditionFailed";
+      err->code = "NotModified";
       goto done_err;
     }
   }