rgw: fix returned error code in If-None-Match

This commit is contained in:
Yehuda Sadeh 2010-07-26 15:34:31 -07:00
parent 58cf95bbc6
commit 3d1f3072eb

View 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;
}
}