Skip to content

Commit

Permalink
rgw: minor optimization
Browse files Browse the repository at this point in the history
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 4919dc9)
  • Loading branch information
yehudasa authored and mattbenjamin committed Jan 26, 2017
1 parent 7f76bb1 commit 514e2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_rest_s3.cc
Expand Up @@ -1311,7 +1311,7 @@ void RGWPutObj_ObjStore_S3::send_response()
s->cct->_conf->rgw_s3_success_create_obj_status);
set_req_state_err(s, op_ret);
}
if (!s->info.env->get("HTTP_X_AMZ_COPY_SOURCE")) {
if (!copy_source) {
dump_etag(s, etag.c_str());
dump_content_length(s, 0);
} else {
Expand Down

0 comments on commit 514e2ba

Please sign in to comment.