This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit ba796abcbd215b92d5f63e211124290a5c0bc7df Author: Cécilia Bossard <bossard@codelutin.com> Date: Fri Jul 17 17:05:14 2020 +0200 Correction if the request has no media type (for instance in case of a 'delete' request) --- .../java/org/chorem/pollen/rest/api/PollenRestApiRequestFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/PollenRestApiRequestFilter.java b/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/PollenRestApiRequestFilter.java index c6d8506e..edeff908 100644 --- a/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/PollenRestApiRequestFilter.java +++ b/pollen-rest-api/src/main/java/org/chorem/pollen/rest/api/PollenRestApiRequestFilter.java @@ -185,7 +185,7 @@ public class PollenRestApiRequestFilter implements ContainerRequestFilter, Conta } } else { - if(!"image".equals(containerResponseContext.getMediaType().getType())) { + if(containerResponseContext.getMediaType() != null && !"image".equals(containerResponseContext.getMediaType().getType())) { // add cookies addTokenToResponse(containerResponseContext); } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.