Commit 9a13add2 authored by Valentin Skripnikov's avatar Valentin Skripnikov

fix content type check

parent 41b0d9b3
...@@ -77,7 +77,7 @@ public class UnsecuredProxyService { ...@@ -77,7 +77,7 @@ public class UnsecuredProxyService {
LOGGER.info("Response Code: " + responseCode); LOGGER.info("Response Code: " + responseCode);
LOGGER.info("Content-Type: " + entity.getContentType().getValue()); LOGGER.info("Content-Type: " + entity.getContentType().getValue());
if (entity.getContentType().getValue().toLowerCase().startsWith("image/png")) { if (entity.getContentType().getValue().toLowerCase().startsWith("image/")) {
Response.ResponseBuilder builder = Response.ok(); Response.ResponseBuilder builder = Response.ok();
builder.entity(entity.getContent()); builder.entity(entity.getContent());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment