summaryrefslogtreecommitdiffstats
path: root/src/core/net/url_request_custom_job.cpp
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2019-10-23 14:02:59 +0200
committerJüri Valdmann <juri.valdmann@qt.io>2019-10-24 12:01:53 +0200
commitf74170eb7d66fceada6236e87a88573844fd2512 (patch)
tree7709cdebbba3a2b47b0f39b42ed5455082447c8c /src/core/net/url_request_custom_job.cpp
parentd9184f003a4f7ed214f3d170b26c2c0c0a5696ce (diff)
Delete URLRequestCustomJob::m_httpStatusCode
Change-Id: Iab2f1735ea3ef73e77e0c37d263c0771a4ffb336 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/net/url_request_custom_job.cpp')
-rw-r--r--src/core/net/url_request_custom_job.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/net/url_request_custom_job.cpp b/src/core/net/url_request_custom_job.cpp
index 8f0fada57..37f7de256 100644
--- a/src/core/net/url_request_custom_job.cpp
+++ b/src/core/net/url_request_custom_job.cpp
@@ -68,7 +68,6 @@ URLRequestCustomJob::URLRequestCustomJob(URLRequest *request,
, m_pendingReadBuffer(nullptr)
, m_corsEnabled(QWebEngineUrlScheme::schemeByName(QByteArray::fromStdString(scheme))
.flags().testFlag(QWebEngineUrlScheme::CorsEnabled))
- , m_httpStatusCode(500)
{
}
@@ -155,7 +154,7 @@ void URLRequestCustomJob::GetResponseInfo(HttpResponseInfo* info)
headers += "HTTP/1.1 303 See Other\n";
headers += base::StringPrintf("Location: %s\n", m_redirect.spec().c_str());
} else {
- headers += base::StringPrintf("HTTP/1.1 %i OK\n", m_httpStatusCode);
+ headers += base::StringPrintf("HTTP/1.1 %i OK\n", 200);
if (m_mimeType.size() > 0) {
headers += base::StringPrintf("Content-Type: %s", m_mimeType.c_str());
if (m_charset.size() > 0)