bencebalogh / avro-schema-registry

Confluent Schema Registry implementation in javascript to easily serialize and deserialize kafka messages
MIT License
28 stars 30 forks source link

Option for passing additional headers #44

Closed ashetga closed 4 years ago

ashetga commented 4 years ago

Hello,

Is there any option for passing additional headers. I access a third-party schema registry through a gateway and gateway expects me to send below header:

'Content-Type': 'application/vnd.schemaregistry.v1+json'

The gateway currently rejects all requests without this header. Is there any option for achieving this?

Thanks, Akshay

bencebalogh commented 4 years ago

This header used to be in the call, got removed by accident during a refactor. I've added it back in 2.1.1, if you still have a need after this to pass optional headers please reopen the issue.