aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at/gv/egovernment/moa
diff options
context:
space:
mode:
authorkstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d>2011-03-28 17:22:32 +0000
committerkstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d>2011-03-28 17:22:32 +0000
commit2a31c88fda199a37fb7136d86100a9c330e5de34 (patch)
treefd8960c05b20399328768f0ca39a480b8acb2c61 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa
parentaa06d0b69b4638d4eaa44610dce8831a87514573 (diff)
downloadmoa-id-spss-2a31c88fda199a37fb7136d86100a9c330e5de34.tar.gz
moa-id-spss-2a31c88fda199a37fb7136d86100a9c330e5de34.tar.bz2
moa-id-spss-2a31c88fda199a37fb7136d86100a9c330e5de34.zip
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1197 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java
index 0cd0a0b7a..ce15b75bd 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/proxy/servlet/ProxyServlet.java
@@ -659,18 +659,14 @@ private int tunnelRequest(HttpServletRequest req, HttpServletResponse resp, Map
} else {
Logger.debug("Resp header ---REMOVED--- " + headerKey + ": " + headerValue);
}
- if (isTransferEncodingChunkedHeader(headerKey, headerValue)) {
- chunked = true;
- transferEncodingKey = headerKey;
+ if (isTransferEncodingChunkedHeader(headerKey, headerValue) || "content-length".equalsIgnoreCase(headerKey)) {
+ respHeaders.remove(respHeader);
+ Logger.debug("Resp header " + headerKey + " REMOVED");
}
- if ("content-length".equalsIgnoreCase(headerKey))
- contentLengthKey = headerKey;
+
i++;
}
- if (chunked && contentLengthKey != null) {
- respHeaders.remove(transferEncodingKey);
- Logger.debug("Resp header " + transferEncodingKey + " REMOVED");
- }
+
String headerValue;
String respHeader[] = new String[2];