-
Bug
-
Resolution: Fixed
-
Major
-
5.1, 5.6.3, 5.8.1
-
None
-
-
Yes
-
Empty show more show less
-
Yes
-
Yes
-
Maintenance 1, Maintenance 2
-
8
I added a (spring MVC) rest service for one of my content workspaces and noticed that cached responses have a content-type header of text/html instead of application/json.
From what I can see, this is because CacheResponseWrapper stores the content-type header in its own map, but when invoking
final String contentType = cachedResponse.getContentType()
in Store.java
then the header is incorrectly retrieved from the wrapped object instead, which holds a default text/html content type.
Acceptance criteria