From 471d5523c41a145ab30653cec111fdc0390c7e73 Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Thu, 30 Aug 2018 17:08:00 -0300 Subject: [PATCH] Removed debugging log --- modules/qrest/src/main/java/org/jpos/qrest/SendResponse.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/qrest/src/main/java/org/jpos/qrest/SendResponse.java b/modules/qrest/src/main/java/org/jpos/qrest/SendResponse.java index b7ae4fc139..c8af75f0f8 100644 --- a/modules/qrest/src/main/java/org/jpos/qrest/SendResponse.java +++ b/modules/qrest/src/main/java/org/jpos/qrest/SendResponse.java @@ -68,6 +68,7 @@ private void sendResponse (Context ctx, ChannelHandlerContext ch, FullHttpReques HttpHeaders headers = response.headers(); if (keepAlive) headers.set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE); + if (contentType != null) headers.set(HttpHeaderNames.CONTENT_TYPE, contentType); headers.set(HttpHeaderNames.CONTENT_LENGTH, response.content().readableBytes());