keda-connectors icon indicating copy to clipboard operation
keda-connectors copied to clipboard

[Bug] Duplicated content type in header when use kafka-http-connector

Open chenjr0719 opened this issue 4 years ago • 1 comments

Hi there, I found an issue in kafka-http-connector. https://github.com/fission/keda-connectors/blob/da094250dc08122358a725cf67d54cf5fc313396/kafka-http-connector/main.go#L215-L226

If the message header also specifies the same keys (ex: content-type), when it sends the request to the function might be broken because of the duplicate key.

I would like to know, is it possible to check the message header first, and if it doesn't contain the same key, we use the default value here?

chenjr0719 avatar Dec 27 '20 14:12 chenjr0719

Hi @chenjr0719. Can you please provide the steps to reproduce the issue?

blackfly19 avatar Nov 29 '21 07:11 blackfly19