Skip to content

fix: fail fast on --password without --user#937

Merged
KernelDeimos merged 2 commits intomasterfrom
eric/251128-935
Nov 29, 2025
Merged

fix: fail fast on --password without --user#937
KernelDeimos merged 2 commits intomasterfrom
eric/251128-935

Conversation

@KernelDeimos
Copy link
Copy Markdown
Contributor

@KernelDeimos KernelDeimos commented Nov 29, 2025

When passing a password without a username, http-server will launch successfully but the first request with an Authorization header will crash the server. This behavior is very inconvenient. This commit makes it fail fast instead so you know there's a problem before you log out of SSH or walk out of the house or office. Also alised --user to --username for added convenience.

Resolves #935

Relevant issues
Contributor checklist
  • Provide tests for the changes (unless documentation-only) (automated testing is not worth it here; manually tested)
  • Documented any new features, CLI switches, etc. (if applicable)
    • Server --help output
    • README.md
    • doc/http-server.1 (use the same format as other entries)
  • The pull request is being made against the master branch
Maintainer checklist
  • Assign a version triage tag
  • Approve tests if applicable

When passing a password without a username, http-server will launch
successfully but the first request with an Authorization header will
crash the server. This behavior is very inconvenient. This commit makes
it fail fast instead so you know there's a problem before you log out of
SSH or walk out of the house or office. Also alised `--user` to
`--username` for added convenience.

Resolves #935
@KernelDeimos KernelDeimos merged commit d2c7a5f into master Nov 29, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using authentication crashes server

1 participant