lib/httpx/plugins/grpc.rb in httpx-1.1.5 vs lib/httpx/plugins/grpc.rb in httpx-1.2.0

- old
+ new

@@ -259,17 +259,17 @@ # convert to milliseconds deadline = (deadline * 1000.0).to_i headers["grpc-timeout"] = "#{deadline}m" end - headers = headers.merge(metadata) if metadata + headers = headers.merge(metadata.transform_keys(&:to_s)) if metadata # prepare compressor compression = @options.grpc_compression == true ? "gzip" : @options.grpc_compression headers["grpc-encoding"] = compression if compression - headers.merge!(@options.call_credentials.call) if @options.call_credentials + headers.merge!(@options.call_credentials.call.transform_keys(&:to_s)) if @options.call_credentials build_request("POST", uri, headers: headers, body: input) end end end