dasch / avro_turf

A library that makes it easier to use the Avro serialization format from Ruby.
MIT License
167 stars 80 forks source link

Use Excon default headers #184

Closed bacchir closed 1 year ago

bacchir commented 1 year ago

Use Excon default headers when sending requests to the schema registry, to add Accept and User-Agent.

Some companies (including mine) have some security policies that forbid requests from empty or blacklisted user agents, so AvroTurf requests are blocked since the current implementation replaces the Excon default headers with some new ones.

This PR just makes sure that the defaults are kept and merged with the new ones.

bacchir commented 1 year ago

Hey @dasch can you please release a new version of the gem (1.8.1) with this change? I believe this is an important change, specially now that more and more companies are implementing strict WAF rules.

dasch commented 1 year ago

Released in v1.9.0