support paste.polymc.org
This commit is contained in:
parent
caeab926bc
commit
af20b5ee0e
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user