branch develop updated (21b92b77 -> ba796abc)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from 21b92b77 Add gzip compression to api response new ba796abc Correction if the request has no media type (for instance in case of a 'delete' request) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: 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) Summary of changes: .../java/org/chorem/pollen/rest/api/PollenRestApiRequestFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
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>.
participants (1)
-
chorem.org scm