use bl.to_str() instead of bl.c_str() to avoid encoding of the null
termination.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
if (aiter != rgw_to_http_attrs.end()) {
if (response_attrs.count(aiter->second) == 0) {
/* Was not already overridden by a response param. */
- response_attrs[aiter->second] = iter->second.c_str();
+ response_attrs[aiter->second] = iter->second.to_str();
}
} else if (iter->first.compare(RGW_ATTR_CONTENT_TYPE) == 0) {
/* Special handling for content_type. */