From fc38346c596d8b0bc156183970d6a327943cb577 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Wed, 15 Jun 2016 16:53:16 +0200 Subject: [PATCH] rgw: check for -ERR_NOT_MODIFIED in rgw_rest_s3.cc Fixes: http://tracker.ceph.com/issues/16327 Signed-off-by: Nathan Cutler --- src/rgw/rgw_rest_s3.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index ada113d459e..1d64aa061a7 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -266,7 +266,7 @@ done: riter->second.c_str()); } - if (op_ret == ERR_NOT_MODIFIED) { + if (op_ret == -ERR_NOT_MODIFIED) { end_header(s, this); } else { if (!content_type) -- 2.47.3