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

elixir-mint / mint / ce370fefeafddbc13682d6c46a8f1f3e6837a07f-PR-547
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: push-promise-authority
DEFAULT BRANCH: main
Ran 16 Nov 2026 09:10PM UTC
Jobs 1
Files 22
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

16 Nov 2026 09:08PM UTC coverage: 90.572% (-0.05%) from 90.623%
ce370fefeafddbc13682d6c46a8f1f3e6837a07f-PR-547

Pull #547

github

ericmj
Reset HTTP/2 pushes for other origins

Mint.HTTP2 checked that a PUSH_PROMISE carried non-empty :scheme and
:authority pseudo-headers but never compared them to the connection, so
a server on https://a.example could promise a response for
https://b.example and Mint returned it to the caller as a
:push_promise. RFC 9113 8.4.1 requires the client to check that the
server is authoritative for a pushed request and to treat a push that
fails the check as a stream error of type PROTOCOL_ERROR. A caller that
stores pushed responses under the promised URL would otherwise store
another origin's content.

Pushes are now accepted only for the connection's own origin: the
promised :scheme must equal the connection's scheme and the promised
:authority must equal the connection's authority, ignoring case and an
explicit default port. Other pushes reset the promised stream with
PROTOCOL_ERROR, like the other invalid promised requests. RFC 9113 10.1
also allows pushes for any origin covered by the server's certificate,
which Mint doesn't track per connection, so those are reset as well.
Pull Request #547: Reset HTTP/2 pushes for other origins

14 of 14 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

1854 of 2047 relevant lines covered (90.57%)

752.03 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.05
-1.32% lib/mint/http1/response.ex
1
95.49
-0.06% lib/mint/http2.ex
Jobs
ID Job ID Ran Files Coverage
1 ce370fefeafddbc13682d6c46a8f1f3e6837a07f-PR-547.1 16 Nov 2026 09:10PM UTC 22
90.57
GitHub Action Run
Source Files on build ce370fefeafddbc13682d6c46a8f1f3e6837a07f-PR-547
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #547
  • PR Base - main (#B8EFB73E...)
  • 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