java-sdk
java-sdk copied to clipboard
Given Metadata is ignored on Htttp Service invocation
Expected Behavior
When Http-Headers are give to method invokeMethod of class DaprClient these headers should be sent along with the request.
Actual Behavior
It seems that the metadata is ignored when sending request. In AbstractClient line 115 see. There the given matadata is ignored. In DaprClientHttp line 211 see there are added additional headers to the request, but they come from the HttpExtension object.
Steps to Reproduce the Problem
- invoke a service over http while giving a
Map<String,String>to the metadata parameter - the invoked service won't get these Headers
Thanks for reporting. FYI, in general we encourage users to use a native HTTP client for service invocation calls and not use InvokeMethod.
/assign