We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c01725 commit 4257390Copy full SHA for 4257390
http-client-java/src/main/java/org/expath/httpclient/impl/RequestParser.java
@@ -148,6 +148,7 @@ else if ( "chunked".equals(local) ) {
148
// walk the elements
149
// TODO: Check element structure validity (header*, (multipart|body)?)
150
HeaderSet headers = new HeaderSet();
151
+ req.setHeaders(headers);
152
for ( Element child : myRequest.children() ) {
153
String local = child.getLocalName();
154
String ns = child.getNamespaceUri();
@@ -173,7 +174,6 @@ else if ( "body".equals(local) || "multipart".equals(local) ) {
173
174
throw new HttpClientException(HttpClientError.HC005, "Unknown element: " + local);
175
}
176
- req.setHeaders(headers);
177
178
return req;
179
0 commit comments