google / google/brotli

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

Open
#1,154 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14.9k
Forks
1.4k
Avg merge
4d 20h
Merged PRs (30d)
9

Description

```
> 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.

Contributor guide

Open the contributing guide

Research direction

Start by running the provided curl command against the Yelp URL and confirm that Brotli reports corrupt input while Chrome loads the response. Trace the decoder behavior for this response and compare it with the response termination or framing; done means the body decodes successfully without regressing existing decoder tests.

Written by the indexing model from the issue text.

Assessment

Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.