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"
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".
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |