Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option for custom headers #887

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

dxdxdt
Copy link

@dxdxdt dxdxdt commented Aug 15, 2024

Difference/improvements over #885:

  • Semantically identical to curl -H and curl --header 1
  • Empty headers are allowed (RFC 7230)
  • Includes tests

Sorry :)

Relevant issues

Resolves #884

Contributor checklist
  • Provide tests for the changes (unless documentation-only)
  • 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

Footnotes

  1. https://curl.se/docs/manpage.html#-H

- Change --help option output
- Accept empty header to conform to RFC 7230 (-H "empty-header" or
  -H "empty-header:")
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.

User-provided custom headers
1 participant