From 45aa67062f7bf53cefbb5f53c7f1a4fb870ecb47 Mon Sep 17 00:00:00 2001 From: Nate Choe Date: Wed, 13 Jul 2022 01:49:05 -0500 Subject: [PATCH] HTTP/1.0 works now --- src/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections.c b/src/connections.c index 955f82b..2418822 100644 --- a/src/connections.c +++ b/src/connections.c @@ -259,7 +259,7 @@ static int processRequest(Connection *conn) { return 1; } } - if (strcmp(line, "HTTP/1.1")) + if (strcmp(line, "HTTP/1.0") && strcmp(line, "HTTP/1.1")) return 1; conn->progress = RECEIVE_HEADER; conn->fieldCount = 0;