google / brotli

Brotli compression format
MIT License
13.3k stars 1.22k forks source link

Brotli fails to decode some HTTP response bodies received from yelp.com #1154

Open guoye-zhang opened 2 months ago

guoye-zhang commented 2 months ago
> curl -H 'accept-encoding: br' 'https://www.yelp.com/biz/Qy_RVSvDoUfCETQ6vuq6Tw/props?override_cta=Get+a+Quote&original_request_id=40d132c208636611' | ./brotli -d -c -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4810 0 4810 0 0 2575 0 --:--:-- 0:00:01 --:--:-- 2574
corrupt input [con]

This specific URL loads fine in Chrome.

The archive might not have been terminated correctly.

yifeikong commented 1 month ago

I also find the same error, it seems that curl 8.5 and 8.6 has some issues, but curl 8.7.1 works fine for me.