Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Origin::try_from_parts shouldn't include default port values

Open
#27 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
rust
Domain
networking

Research direction

Locate the Origin::try_from_parts entry point and inspect how HTTP and HTTPS ports are represented. Verify the behavior for http with port 80 and https with port 443, then run the relevant existing tests or add coverage showing that these default ports are omitted while other ports remain included.

Written by the indexing model from the issue text.

Description

easy

If the scheme is http and the port is 80, or https and 443, the port should not be included by default. Per testing in https://github.com/servo/servo/issues/22090#issuecomment-443602332 this is not web compatible.

Dominant language
Rust
Stars
200
Forks
107
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hyperium/headers

All issues in hyperium/headers

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.