if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (!op_ret){
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (!op_ret) {
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
ReplicationConfiguration conf;
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
dump_start(s);
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, NULL, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, NULL, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
if (! op_ret) {
list_all_buckets_start(s);
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, this, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret < 0)
return;
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, this, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret < 0) {
return;
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, this, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret < 0) {
return;
void RGWGetBucketLogging_ObjStore_S3::send_response()
{
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
s->formatter->open_object_section_in_ns("BucketLoggingStatus", XMLNS_AWS_S3);
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
s->formatter->open_object_section_in_ns("VersioningConfiguration", XMLNS_AWS_S3);
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
}
int RGWSetBucketWebsite_ObjStore_S3::get_params(optional_yield y)
if (op_ret < 0)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
}
void RGWDeleteBucketWebsite_ObjStore_S3::send_response()
}
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
}
void RGWGetBucketWebsite_ObjStore_S3::send_response()
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (op_ret < 0) {
dump_errno(s);
dump_header_if_nonempty(s, "x-amz-version-id", version_id);
dump_header_if_nonempty(s, "x-amz-expiration", expires);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
struct tm tmp;
utime_t ut(mtime);
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, this, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret == 0) {
s->formatter->open_object_section_in_ns("CopyObjectResult", XMLNS_AWS_S3);
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
rgw_flush_formatter(s, s->formatter);
dump_body(s, acls);
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
}
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (op_ret < 0)
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
set_req_state_err(s, op_ret);
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
}
set_req_state_err(s, op_ret);
}
dump_errno(s);
- end_header(s, NULL, "application/xml");
+ end_header(s, NULL, to_mime_type(s->format));
dump_start(s);
if (! op_ret) {
string cors;
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, NULL, "application/xml");
+ end_header(s, NULL, to_mime_type(s->format));
dump_start(s);
}
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (!op_ret) {
void RGWGetRequestPayment_ObjStore_S3::send_response()
{
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
s->formatter->open_object_section_in_ns("RequestPaymentConfiguration", XMLNS_AWS_S3);
dump_time_header(s, "x-amz-abort-date", abort_date);
dump_header_if_nonempty(s, "x-amz-abort-rule-id", rule_id);
}
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
if (op_ret == 0) {
dump_start(s);
s->formatter->open_object_section_in_ns("InitiateMultipartUploadResult", XMLNS_AWS_S3);
set_req_state_err(s, op_ret);
dump_errno(s);
dump_header_if_nonempty(s, "x-amz-version-id", version_id);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
if (op_ret == 0) {
dump_start(s);
s->formatter->open_object_section_in_ns("CompleteMultipartUploadResult", XMLNS_AWS_S3);
dump_errno(s);
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, this, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
if (op_ret == 0) {
dump_start(s);
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, this, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret < 0)
return;
dump_start(s);
// Explicitly use chunked transfer encoding so that we can stream the result
// to the user without having to wait for the full length of it.
- end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
+ end_header(s, this, to_mime_type(s->format), CHUNKED_TRANSFER_ENCODING);
s->formatter->open_object_section_in_ns("DeleteResult", XMLNS_AWS_S3);
rgw_flush_formatter(s, s->formatter);
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, NULL, "application/xml");
+ end_header(s, NULL, to_mime_type(s->format));
Formatter *f = s->formatter;
f->open_array_section("GetBucketMetaSearchResult");
set_req_state_err(s, op_ret);
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (op_ret) {
set_req_state_err(s, op_ret);
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (op_ret) {
set_req_state_err(s, op_ret);
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
if (op_ret) {
set_req_state_err(s, op_ret);
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
s->formatter->open_object_section_in_ns("PolicyStatus", XMLNS_AWS_S3);
set_req_state_err(s, op_ret);
}
dump_errno(s);
- end_header(s, this, "application/xml");
+ end_header(s, this, to_mime_type(s->format));
dump_start(s);
access_conf.dump_xml(s->formatter);