zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 66da64d77c377a3e77e66bea192c39482d9bcda7 (tree)
parent 3c66850e4296ce2e0f9e0d25bc537aa489f4603e
Author: Meghan <hello@nektro.net>
Date:   Wed, 26 Apr 2023 11:02:55 -0700

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

.header_fields_too_large -> .request_header_fields_too_large
Diffstat:
Mlib/std/http.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/std/http.zig b/lib/std/http.zig @@ -128,7 +128,7 @@ pub const Status = enum(u10) { upgrade_required = 426, // RFC7231, Section 6.5.15 precondition_required = 428, // RFC6585 too_many_requests = 429, // RFC6585 - header_fields_too_large = 431, // RFC6585 + request_header_fields_too_large = 431, // RFC6585 unavailable_for_legal_reasons = 451, // RFC7725 internal_server_error = 500, // RFC7231, Section 6.6.1 @@ -203,7 +203,7 @@ pub const Status = enum(u10) { .upgrade_required => "Upgrade Required", .precondition_required => "Precondition Required", .too_many_requests => "Too Many Requests", - .header_fields_too_large => "Request Header Fields Too Large", + .request_header_fields_too_large => "Request Header Fields Too Large", .unavailable_for_legal_reasons => "Unavailable For Legal Reasons", // 5xx statuses