mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
rgw: fix returned error code in If-None-Match
This commit is contained in:
parent
58cf95bbc6
commit
3d1f3072eb
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user