support paste.polymc.org

This commit is contained in:
swirl 2022-01-23 12:54:58 -05:00
parent caeab926bc
commit af20b5ee0e
No known key found for this signature in database
GPG Key ID: 46507311CD292A08

View File

@ -59,7 +59,7 @@ void PasteUpload::downloadFinished()
m_reply.reset(); m_reply.reset();
return; return;
} }
else if (statusCode != 200) else if (statusCode != 200 && statusCode != 201)
{ {
QString reasonPhrase = m_reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toString(); 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)); emitFailed(tr("Error: %1 returned unexpected status code %2 %3").arg(m_uploadUrl).arg(statusCode).arg(reasonPhrase));