From af20b5ee0e09d5c9ec36d54c80ca688c7c67012d Mon Sep 17 00:00:00 2001 From: swirl Date: Sun, 23 Jan 2022 12:54:58 -0500 Subject: [PATCH] support paste.polymc.org --- launcher/net/PasteUpload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/net/PasteUpload.cpp b/launcher/net/PasteUpload.cpp index 4efcefdd..52b82a0e 100644 --- a/launcher/net/PasteUpload.cpp +++ b/launcher/net/PasteUpload.cpp @@ -59,7 +59,7 @@ void PasteUpload::downloadFinished() m_reply.reset(); return; } - else if (statusCode != 200) + else if (statusCode != 200 && statusCode != 201) { QString reasonPhrase = m_reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toString(); emitFailed(tr("Error: %1 returned unexpected status code %2 %3").arg(m_uploadUrl).arg(statusCode).arg(reasonPhrase));