From 6fd90ed8c0ef12aedf8f4121611f35bcec89a06b Mon Sep 17 00:00:00 2001 From: clemenso Date: Tue, 25 Jan 2011 15:05:32 +0000 Subject: Add content-type header for GET request before setting HTTP headers on binding processor Issue #MOCCA-773 - HTTP GET request fails with Error Code 2006 git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@895 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/main/java/at/gv/egiz/bku/online/webapp/WebRequestHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'BKUOnline/src/main/java/at/gv/egiz') diff --git a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/WebRequestHandler.java b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/WebRequestHandler.java index 0f432a10..4968b592 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/WebRequestHandler.java +++ b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/WebRequestHandler.java @@ -99,7 +99,6 @@ public class WebRequestHandler extends HttpServlet { headerMap.put(name, value); } } - bindingProcessor.setHTTPHeaders(headerMap); // set request stream InputStream inputStream; @@ -114,6 +113,8 @@ public class WebRequestHandler extends HttpServlet { inputStream = new ByteArrayInputStream(new byte[] {}); } } + + bindingProcessor.setHTTPHeaders(headerMap); bindingProcessor.consumeRequestStream(req.getRequestURL().toString(), inputStream); inputStream.close(); -- cgit v1.2.3