Skip to content

Commit bb13fb2

Browse files
authored
Merge pull request #146 from mohanvive/master
Fix for build failure issue
2 parents c285313 + 102ca3d commit bb13fb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

component/src/main/java/io/siddhi/extension/io/http/sink/HttpCallSink.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,11 @@ private int sendRequest(Object payload, DynamicOptions dynamicOptions, List<Head
652652
if (!publisherURLOption.isStatic()) {
653653
super.initClientConnector(dynamicOptions);
654654
}
655+
656+
if (mapType == null) {
657+
mapType = getMapper().getType();
658+
}
659+
655660
String httpMethod = EMPTY_STRING.equals(httpMethodOption.getValue(dynamicOptions)) ?
656661
HttpConstants.METHOD_DEFAULT : httpMethodOption.getValue(dynamicOptions);
657662
String contentType = HttpSinkUtil.getContentType(mapType, headersList);

0 commit comments

Comments
 (0)