We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24766d2 commit 4e7a0cfCopy full SHA for 4e7a0cf
core/src/main/java/org/springframework/ws/transport/http/HttpServletConnection.java
@@ -16,6 +16,7 @@
16
17
package org.springframework.ws.transport.http;
18
19
+import java.io.FilterInputStream;
20
import java.io.IOException;
21
import java.io.InputStream;
22
import java.io.OutputStream;
@@ -89,7 +90,12 @@ protected Iterator getRequestHeaders(String name) throws IOException {
89
90
}
91
92
protected InputStream getRequestInputStream() throws IOException {
- return getHttpServletRequest().getInputStream();
93
+ return new FilterInputStream(getHttpServletRequest().getInputStream()) {
94
+
95
+ public void close() throws IOException {
96
+ // defer close, some SAAJ implementations (Axis 1) lazy-initialize the SOAPMessage
97
+ }
98
+ };
99
100
101
/*
0 commit comments