From a2fb79b6c4a6c06f9d129442b9b186515e1959fe Mon Sep 17 00:00:00 2001 From: Frederik Date: Tue, 13 Aug 2019 13:37:17 +0200 Subject: [PATCH] status code and text not required According to some quick testing, most browsers won't need these, so that would save you a few bytes. Question is how many browsers you aim to support though and what's more important to you (bytes / browsers), so this wasn't really clear to me up front --- server/c/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/c/main.c b/server/c/main.c index 0b881f3..f59ed66 100644 --- a/server/c/main.c +++ b/server/c/main.c @@ -17,7 +17,7 @@ #define PORT "80" // the port users will be connecting to -#define HEADERS "HTTP/1.1 200 k\nContent-Length: %ld\ncontent-encoding: deflate\n\n" +#define HEADERS "HTTP/1.1\nContent-Length: %ld\ncontent-encoding: deflate\n\n" #define BACKLOG 10 // how many pending connections queue will hold #define MAX_CONTENT_LENGTH 9999