summaryrefslogtreecommitdiffstats
path: root/logic/net
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-07-03 20:29:44 +0200
committerPetr Mrázek <peterix@gmail.com>2014-07-03 20:29:44 +0200
commitb5d6f50fb12f01f6e2bed24118dd777163339a06 (patch)
tree40670c2ce1168183fae9570ce64d02f90f0cfdc0 /logic/net
parent252f375454576c3e1a15de85b3f5b5d379f931ca (diff)
downloadMultiMC-b5d6f50fb12f01f6e2bed24118dd777163339a06.tar
MultiMC-b5d6f50fb12f01f6e2bed24118dd777163339a06.tar.gz
MultiMC-b5d6f50fb12f01f6e2bed24118dd777163339a06.tar.lz
MultiMC-b5d6f50fb12f01f6e2bed24118dd777163339a06.tar.xz
MultiMC-b5d6f50fb12f01f6e2bed24118dd777163339a06.zip
Make paste.ee logs expire after a month
Diffstat (limited to 'logic/net')
-rw-r--r--logic/net/PasteUpload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/net/PasteUpload.cpp b/logic/net/PasteUpload.cpp
index 402eb400..ec0b2c60 100644
--- a/logic/net/PasteUpload.cpp
+++ b/logic/net/PasteUpload.cpp
@@ -15,7 +15,7 @@ void PasteUpload::executeTask()
QNetworkRequest request(QUrl("http://paste.ee/api"));
request.setHeader(QNetworkRequest::UserAgentHeader, "MultiMC/5.0 (Uncached)");
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());
request.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
request.setRawHeader("Content-Length", QByteArray::number(content.size()));