• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elixir-mint / mint / 984629f54c428b0e22fc46ed405dd798e1ebe369-PR-505
89%
main: 91%

Build:
Build:
LAST BUILD BRANCH: v1.10
DEFAULT BRANCH: main
Ran 20 Sep 2026 08:39PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Sep 2026 08:38PM UTC coverage: 88.82% (+0.2%) from 88.627%
984629f54c428b0e22fc46ed405dd798e1ebe369-PR-505

Pull #505

github

ericmj
Check HTTP/2 response bodies against the content-length header

The content-length header of an HTTP/2 response wasn't compared with the
DATA frames, so a body that was cut short, or that kept going past the
declared length, was delivered as a complete response. Non-numeric and
conflicting content-length values were passed through as well.

Each stream now records the request method and the declared length, and
counts the body bytes it receives. A body that exceeds the declared
length, or that ends (through END_STREAM on DATA, on the headers or on
trailers) at a different length, is a stream error with PROTOCOL_ERROR,
following RFC 9113 8.1.1. Responses to HEAD, 2xx responses to CONNECT
and 204 and 304 responses carry no content and are exempt. Identical
duplicate content-length headers are accepted; differing values fail
with :more_than_one_content_length_header and values that aren't digits
fail with {:invalid_content_length_header, value}.
Pull Request #505: Check HTTP/2 response bodies against the content-length header

55 of 58 new or added lines in 1 file covered. (94.83%)

24 existing lines in 2 files now uncovered.

1581 of 1780 relevant lines covered (88.82%)

546.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
94.13
0.19% lib/mint/http2.ex

Coverage Regressions

Lines Coverage ∆ File
20
94.13
0.19% lib/mint/http2.ex
4
87.27
0.0% lib/mint/http1/parse.ex
Jobs
ID Job ID Ran Files Coverage
1 984629f54c428b0e22fc46ed405dd798e1ebe369-PR-505.1 20 Sep 2026 08:39PM UTC 21
88.82
GitHub Action Run
Source Files on build 984629f54c428b0e22fc46ed405dd798e1ebe369-PR-505
  • Tree
  • List 21
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #505
  • PR Base - validate-http2-response-headers (#388D5336...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc