From 9cbe64c54dee8451794e29f4357ccfac6d883e6b Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Thu, 9 Aug 2018 11:18:11 +0200 Subject: Revert "Add HTTP request headers to custom URL schemes" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a5bdc6236ad52586579a9a3da6a059835ed60761 and 04355f4d6f311adebfc354b094a5f79c6327e86f. CI still crashes on tst_QWebEngineProfile::urlSchemeHandler tests, issue is not reproducible locally and it will take time to investigate. Task-number: QTBUG-69844 Change-Id: I7ddb6a32383400d553fe692c24effb6dfb7b6102 Reviewed-by: Michael BrĂ¼ning --- src/core/net/url_request_custom_job_proxy.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/core/net/url_request_custom_job_proxy.cpp') diff --git a/src/core/net/url_request_custom_job_proxy.cpp b/src/core/net/url_request_custom_job_proxy.cpp index 10ca4d0b1..5280318ad 100644 --- a/src/core/net/url_request_custom_job_proxy.cpp +++ b/src/core/net/url_request_custom_job_proxy.cpp @@ -152,7 +152,7 @@ void URLRequestCustomJobProxy::readyRead() m_job->notifyReadyRead(); } -void URLRequestCustomJobProxy::initialize(GURL url, std::string method, base::Optional initiator, QMap headers) +void URLRequestCustomJobProxy::initialize(GURL url, std::string method, base::Optional initiator) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); Q_ASSERT(!m_delegate); @@ -169,8 +169,7 @@ void URLRequestCustomJobProxy::initialize(GURL url, std::string method, base::Op if (schemeHandler) { m_delegate = new URLRequestCustomJobDelegate(this, toQt(url), QByteArray::fromStdString(method), - initiatorOrigin, - headers); + initiatorOrigin); QWebEngineUrlRequestJob *requestJob = new QWebEngineUrlRequestJob(m_delegate); schemeHandler->requestStarted(requestJob); } -- cgit v1.2.3