forked from loafle/openapi-generator-original
manual merge of #125
This commit is contained in:
parent
32d792de01
commit
5892fdb2bb
@ -156,8 +156,11 @@ public class ApiInvoker {
|
||||
}
|
||||
else if ("POST".equals(method)) {
|
||||
HttpPost post = new HttpPost(url);
|
||||
|
||||
if (body != null) {
|
||||
post.setHeader("Content-Type", contentType);
|
||||
post.setEntity(new StringEntity(serialize(body), "UTF-8"));
|
||||
}
|
||||
for(String key : headers.keySet()) {
|
||||
post.setHeader(key, headers.get(key));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user