[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r3863: Initialize the request ID to -1 in the constructor. Also, ac (vidalia/branches/breakpad/src/crashreporter)
Author: edmanm
Date: 2009-06-16 01:48:17 -0400 (Tue, 16 Jun 2009)
New Revision: 3863
Modified:
vidalia/branches/breakpad/src/crashreporter/CrashReportUploader.cpp
Log:
Initialize the request ID to -1 in the constructor. Also, actually call
QHttp::setHost() before trying to POST the form data.
Modified: vidalia/branches/breakpad/src/crashreporter/CrashReportUploader.cpp
===================================================================
--- vidalia/branches/breakpad/src/crashreporter/CrashReportUploader.cpp 2009-06-16 05:40:20 UTC (rev 3862)
+++ vidalia/branches/breakpad/src/crashreporter/CrashReportUploader.cpp 2009-06-16 05:48:17 UTC (rev 3863)
@@ -28,7 +28,8 @@
CrashReportUploader::CrashReportUploader(QObject *parent)
- : QObject(parent)
+ : QObject(parent),
+ _requestId(-1)
{
/* Clear the default CA certificate store and add the only one we want */
QSslSocket::setDefaultCaCertificates(QList<QSslCertificate>());
@@ -84,6 +85,7 @@
body.append(QString("\r\n--%1\r\n").arg(boundary));
/* Initiate the request and return the request ID */
+ _http->setHost(serverUrl.host(), serverUrl.port());
_requestId = _http->request(header, body);
}