From aa8fcb02964e4e2a6b70bbe964dbf9e72ed0f3f0 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sat, 24 Jun 2023 14:17:15 -0700 Subject: [PATCH] Recognize HTTP response codes 201 and 202 as success (thanks hemebond) --- engine/http/httpclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/http/httpclient.c b/engine/http/httpclient.c index 528468e3a..abd0b5872 100644 --- a/engine/http/httpclient.c +++ b/engine/http/httpclient.c @@ -795,7 +795,7 @@ static qboolean HTTP_DL_Work(struct dl_download *dl) return true; } - if (stricmp(buffer, "200")) + if (stricmp(buffer, "200") && stricmp(buffer, "201") && stricmp(buffer, "202")) { nl = strchr(msg, '\n'); if (!nl)