File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dddsample/external/reporting/src/test/java/com/reporting Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,18 +173,18 @@ public void reportHandling() throws Exception {
173
173
}
174
174
175
175
private HttpURLConnection openXMLPostConnection (String path ) throws IOException {
176
- return openWithMethod (path , "POST" );
176
+ return openWithMethod (path , "POST" , "application/xml" );
177
177
}
178
178
179
179
private HttpURLConnection openXMLPutConnection (String path ) throws IOException {
180
- return openWithMethod (path , "PUT" );
180
+ return openWithMethod (path , "PUT" , "application/xml" );
181
181
}
182
182
183
- private HttpURLConnection openWithMethod (String path , String method ) throws IOException {
183
+ private HttpURLConnection openWithMethod (String path , String method , String contentType ) throws IOException {
184
184
HttpURLConnection con = open (path );
185
185
con .setDoOutput (true );
186
186
con .setRequestMethod (method );
187
- con .setRequestProperty ("Content-type" , "application/xml" );
187
+ con .setRequestProperty ("Content-type" , contentType );
188
188
return con ;
189
189
}
190
190
You can’t perform that action at this time.
0 commit comments