Commit a8e61c80 authored by Christian Stenger's avatar Christian Stenger

CodePaster: Fix pastebin.ca protocol

Actually this is circumventing the server side problem.

Task-number: QTCREATORBUG-13802
Change-Id: I93fc9d0adde949a33c11be4cb73d8c28a75e3301
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
parent a690828c
......@@ -38,6 +38,7 @@
#include <QStringList>
static const char urlC[] = "http://pastebin.ca/";
static const char internalUrlC[] = "http://pbin.ca/";
static const char protocolNameC[] = "Pastebin.Ca";
static inline QByteArray expiryValue(int expiryDays)
......@@ -135,7 +136,7 @@ void PasteBinDotCaProtocol::paste(const QString &text,
data += "&name="; // Title or name.
data += QUrl::toPercentEncoding(description);
// fire request
const QString link = QLatin1String(urlC) + QLatin1String("quiet-paste.php");
const QString link = QLatin1String(internalUrlC) + QLatin1String("quiet-paste.php");
m_pasteReply = httpPost(link, data);
connect(m_pasteReply, SIGNAL(finished()), this, SLOT(pasteFinished()));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment