Skip to content

fix: correct misspelled HTTP status code reason phrases - #60

Open
Jah-yee wants to merge 1 commit into
Garados007:mainfrom
Jah-yee:fix/misspelled-status-code-text
Open

Jah-yee wants to merge 1 commit into
Garados007:mainfrom
Jah-yee:fix/misspelled-status-code-text

Conversation

@Jah-yee

@Jah-yee Jah-yee commented Oct 12, 2026

Copy link
Copy Markdown

Summary

Three misspelled entries in the StatusCodeText table in Services/HttpSender.cs:

Status Current Correct (RFC 9110)
101 Switching Protcols Switching Protocols
300 Multiple Choises Multiple Choices
401 Unathorized Unauthorized

Fix

Corrected the three entries in MaxLib.WebServer/Services/HttpSender.cs.

Testing

  • No functional impact (clients ignore reason phrase), but the corrections match RFC 9110 and the IANA HTTP status code registry.

Fixes #59

Three misspelled entries in StatusCodeText table:
- 'Switching Protcols' → 'Switching Protocols' (RFC 9110)
- 'Multiple Choises' → 'Multiple Choices' (RFC 9110)
- 'Unathorized' → 'Unauthorized' (RFC 9110)

Fixes Garados007#59
@Jah-yee

Jah-yee commented Oct 26, 2026

Copy link
Copy Markdown
Author

This PR has been open for two weeks without any review, so I wanted to check whether the change is still wanted on the project. The diff touches a single lookup table in Services/HttpSender.cs — the StatusCodeText method — and corrects three reason phrases: Switching Protcols to Switching Protocols for 101, Multiple Choises to Multiple Choices for 300, and Unathorized to Unauthorized for 401. Nothing outside those three string literals changes, and the branch carries one commit. If you would rather have this split into one commit per status code, or if there are further misspellings in the same table that I did not catch, say so and I will rework the branch accordingly.

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.

Reason-phrase table has misspelled entries (Unathorized, Switching Protcols, Multiple Choises)

1 participant