Bugfix #712
Resolves https://github.com/spring-cloud/spring-cloud-function/issues/712 Resolves #719
This commit is contained in:
committed by
Oleg Zhurakousky
parent
2b210b54af
commit
49d2a679d4
@@ -102,6 +102,7 @@ public class FunctionInvoker extends AbstractSpringFunctionAdapterInitializer<Ht
|
||||
for (Entry<String, Object> header : result.getHeaders().entrySet()) {
|
||||
httpResponse.appendHeader(header.getKey(), header.getValue().toString());
|
||||
}
|
||||
httpRequest.getContentType().ifPresent(contentType -> httpResponse.setContentType(contentType));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user