Recognize HTTP response codes 201 and 202 as success (thanks hemebond)

This commit is contained in:
Marco Cawthorne 2023-06-24 14:17:15 -07:00
parent d57dd2fb3a
commit aa8fcb0296
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -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)