Skip to content

Commit

Permalink
Efficiency improvements for #5977
Browse files Browse the repository at this point in the history
Improve efficiency for non wrapped response for cache-contro
  • Loading branch information
gregw committed Feb 23, 2021
1 parent c0b0f80 commit fdb54fa
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -836,10 +836,10 @@ protected void putHeaders(HttpServletResponse response, HttpContent content, lon
r.putHeaders(content, contentLength, _etags);
HttpFields fields = r.getHttpFields();
if (_acceptRanges && !fields.contains(HttpHeader.ACCEPT_RANGES))
fields.put(ACCEPT_RANGES);
fields.add(ACCEPT_RANGES);

if (_cacheControl != null && !fields.contains(HttpHeader.CACHE_CONTROL))
fields.put(_cacheControl);
fields.add(_cacheControl);
}
else
{
Expand Down

0 comments on commit fdb54fa

Please sign in to comment.