Bug #4124 ยป 0001-radosgw-Fix-duplicate-Content-Type-when-using-respon.patch
src/rgw/rgw_rest_s3.cc | ||
---|---|---|
if (response_attrs.count(aiter->second) > 0) // was already overridden by a response param
|
||
continue;
|
||
if ((!content_type) && aiter->first.compare(RGW_ATTR_CONTENT_TYPE) == 0) { // special handling for content_type
|
||
content_type = iter->second.c_str();
|
||
if (aiter->first.compare(RGW_ATTR_CONTENT_TYPE) == 0) { // special handling for content_type
|
||
if (!content_type)
|
||
content_type = iter->second.c_str();
|
||
continue;
|
||
}
|
||
response_attrs[aiter->second] = iter->second.c_str();
|