Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
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();