Make paste.ee logs expire after a month

This commit is contained in:
Petr Mrázek 2014-07-03 20:29:44 +02:00
parent 252f375454
commit b5d6f50fb1

View File

@ -15,7 +15,7 @@ void PasteUpload::executeTask()
QNetworkRequest request(QUrl("http://paste.ee/api")); QNetworkRequest request(QUrl("http://paste.ee/api"));
request.setHeader(QNetworkRequest::UserAgentHeader, "MultiMC/5.0 (Uncached)"); request.setHeader(QNetworkRequest::UserAgentHeader, "MultiMC/5.0 (Uncached)");
QByteArray content( QByteArray content(
"key=public&description=MultiMC5+Log+File&language=plain&format=json&paste=" + "key=public&description=MultiMC5+Log+File&language=plain&format=json&expire=2592000&paste=" +
m_text.toUtf8()); m_text.toUtf8());
request.setRawHeader("Content-Type", "application/x-www-form-urlencoded"); request.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
request.setRawHeader("Content-Length", QByteArray::number(content.size())); request.setRawHeader("Content-Length", QByteArray::number(content.size()));