fix containsHeader test when it is not instance of Response, Issue #5977 was partially fixed
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
ea2a76ed3b
commit
38ef4009b9
|
@ -838,10 +838,10 @@ public class ResourceService
|
|||
else
|
||||
{
|
||||
Response.putHeaders(response, content, contentLength, _etags);
|
||||
if (_acceptRanges && !response.containsHeader(HttpHeader.ACCEPT_RANGES.name()))
|
||||
if (_acceptRanges && !response.containsHeader(HttpHeader.ACCEPT_RANGES.asString()))
|
||||
response.setHeader(ACCEPT_RANGES.getName(), ACCEPT_RANGES.getValue());
|
||||
|
||||
if (_cacheControl != null && !response.containsHeader(HttpHeader.CACHE_CONTROL.name()))
|
||||
if (_cacheControl != null && !response.containsHeader(HttpHeader.CACHE_CONTROL.asString()))
|
||||
response.setHeader(_cacheControl.getName(), _cacheControl.getValue());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue