Project

General

Profile

Bug #4124 ยป 0001-radosgw-Fix-duplicate-Content-Type-when-using-respon.patch

Proposed patch - Sylvain Munaut, 02/14/2013 05:59 AM

View differences:

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();
    (1-1/1)