diff options
author | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-01-25 15:05:32 +0000 |
---|---|---|
committer | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-01-25 15:05:32 +0000 |
commit | 6fd90ed8c0ef12aedf8f4121611f35bcec89a06b (patch) | |
tree | 3b1a78ad3a0bf15e4ae594b284f83f662f011276 /BKUOnline | |
parent | 7c4d1a5aff3a5ab82464affec8e0e7dcfbd2bfb3 (diff) | |
download | mocca-6fd90ed8c0ef12aedf8f4121611f35bcec89a06b.tar.gz mocca-6fd90ed8c0ef12aedf8f4121611f35bcec89a06b.tar.bz2 mocca-6fd90ed8c0ef12aedf8f4121611f35bcec89a06b.zip |
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
Diffstat (limited to 'BKUOnline')
-rw-r--r-- | BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/WebRequestHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |