From e50dc4d5066cb9d7bbd444fb5d6a624f590a0ceb Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 28 May 2023 11:08:33 +0200 Subject: [PATCH] We need a name to tell it's us --- src/HttpParser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HttpParser.h b/src/HttpParser.h index 8bcd3d5..03832d9 100644 --- a/src/HttpParser.h +++ b/src/HttpParser.h @@ -46,9 +46,9 @@ enum HttpError { /* Returned parser errors match this LUT. */ static const std::string_view httpErrorResponses[] = { "", /* Zeroth place is no error so don't use it */ - "HTTP/1.1 505 HTTP Version Not Supported\r\n\r\n

505 HTTP Version Not Supported

", - "HTTP/1.1 431 Request Header Fields Too Large\r\n\r\n

431 Request Header Fields Too Large

", - "HTTP/1.1 400 Bad Request\r\n\r\n

400 Bad Request

" + "HTTP/1.1 505 HTTP Version Not Supported\r\n\r\n

505 HTTP Version Not Supported

uWebSockets", + "HTTP/1.1 431 Request Header Fields Too Large\r\n\r\n

431 Request Header Fields Too Large

uWebSockets", + "HTTP/1.1 400 Bad Request\r\n\r\n

400 Bad Request

uWebSockets" }; /* We require at least this much post padding */