zalando / nakadi

A distributed event bus that implements a RESTful API abstraction on top of Kafka-like queues
https://nakadi.io
MIT License
952 stars 292 forks source link

respond 'bad request' if content is not gzip #1485

Closed adyach closed 1 year ago

adyach commented 1 year ago

at the moment nakadi throws 503 in case content encoding is set to gzip and the content is not gzip format. the commit changes the behaviour that nakadi responds with 400 in case of the content is not gzip format. it is harder to achieve for zstd because zstdinput stream does not validate the content on the start, the desicion is to keep it (the pubslishing will fail and user connection will be abrupted)

a1exsh commented 1 year ago

:+1:

adyach commented 1 year ago

👍

a1exsh commented 1 year ago

:+1: