authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-04-26 11:02:55-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-04-26 14:02:55-04:00
log66da64d77c377a3e77e66bea192c39482d9bcda7
tree83dc5fb748234d7a4cfa6562dd86b9974cc500e5
parent3c66850e4296ce2e0f9e0d25bc537aa489f4603e
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

std.http: fix name of Status field to better match RFC name (#15455)

.header_fields_too_large -> .request_header_fields_too_large

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/http.zig+2-2
......@@ -128,7 +128,7 @@ pub const Status = enum(u10) {
128128 upgrade_required = 426, // RFC7231, Section 6.5.15
129129 precondition_required = 428, // RFC6585
130130 too_many_requests = 429, // RFC6585
131 header_fields_too_large = 431, // RFC6585
131 request_header_fields_too_large = 431, // RFC6585
132132 unavailable_for_legal_reasons = 451, // RFC7725
133133
134134 internal_server_error = 500, // RFC7231, Section 6.6.1
......@@ -203,7 +203,7 @@ pub const Status = enum(u10) {
203203 .upgrade_required => "Upgrade Required",
204204 .precondition_required => "Precondition Required",
205205 .too_many_requests => "Too Many Requests",
206 .header_fields_too_large => "Request Header Fields Too Large",
206 .request_header_fields_too_large => "Request Header Fields Too Large",
207207 .unavailable_for_legal_reasons => "Unavailable For Legal Reasons",
208208
209209 // 5xx statuses