Make paste.ee logs expire after a month
This commit is contained in:
parent
252f375454
commit
b5d6f50fb1
@ -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()));
|
||||||
|
Loading…
Reference in New Issue
Block a user