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

elixir-mint / mint / 57b1295385b7f067395ac7c9335df4f57e8e02c6
88%

Build:
DEFAULT BRANCH: main
Ran 18 Jul 2026 07:59PM UTC
Jobs 1
Files 20
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

18 Jul 2026 07:58PM UTC coverage: 87.546% (+0.04%) from 87.508%
57b1295385b7f067395ac7c9335df4f57e8e02c6

push

github

web-flow
Send origin Host header for plain-HTTP proxied requests (#491)

* Send origin Host header for plain-HTTP proxied requests

When connecting to an origin through a plain-HTTP (non-tunnel) proxy,
Mint.UnsafeProxy rewrote the request target to the absolute origin URI
but left the Host header unset, so Mint.HTTP1 defaulted it to the proxy's
own host:port. Per RFC 7230 section 5.4 the Host header must identify the
origin server; hackney and HTTPoison already do this.

Set the Host header to the origin (dropping the port when it is the
scheme default) in Mint.UnsafeProxy.request/5 before delegating to
Mint.HTTP1, whose put_new leaves it intact. A caller-supplied Host header
is still respected.

Fixes #446.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NX8ygWTRa86kE8k8Yn9bpu

* Apply suggestion from @ericmj

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com>

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

1434 of 1638 relevant lines covered (87.55%)

492.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 57b1295385b7f067395ac7c9335df4f57e8e02c6.1 18 Jul 2026 07:59PM UTC 20
87.55
GitHub Action Run
Source Files on build 57b1295385b7f067395ac7c9335df4f57e8e02c6
  • Tree
  • List 20
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 57b12953 on github
  • Prev Build on main (#F0B72C0B...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc