brotli support on API proxy ?

Not applicable

One of my API proxy does not support brotli.

$ curl https://conanoc-eval-prod.apigee.net/coinone

works fine.

$ curl -H "Accept-Encoding: gzip, deflate, br" https://conanoc-eval-prod.apigee.net/coinone

fails with following message:

{"fault":{"faultstring":"Unsupported Encoding \"br\"","detail":{"errorcode":"protocol.http.UnsupportedEncoding"}}}

It works fine when I replace "https://conanoc-eval-prod.apigee.net/coinone" with the original url "https://api.coinone.co.kr/ticker?currency=all&format=json"

0 2 795
2 REPLIES 2

I'm not sure where I read it but, we need to set

Accept-Encoding header using assign message policy in Apigee to not include br:

<Set> <Headers> <Header name="Accept-Encoding">gzip,deflate</Header> </Headers> </Set>

Just ran into this today and it took awhile to remember to override the "Accept-Encoding" to remove "br".