From: Yehuda Sadeh Date: Mon, 26 Jul 2010 22:34:31 +0000 (-0700) Subject: rgw: fix returned error code in If-None-Match X-Git-Tag: v0.21~33 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d1f3072eb59c496b75f166531742940fdb987a4;p=ceph.git rgw: fix returned error code in If-None-Match --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index baa092beb9a65..e443407180728 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -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; } }