summaryrefslogtreecommitdiffstats
path: root/src/core/net/url_request_custom_job_delegate.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2023-08-25 13:05:35 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2023-08-25 14:56:36 +0100
commitf5fc1a83933aab99af20b471f395a4202b4dc153 (patch)
treeed165ae67600afe8fcfbb577141d12a67ae366b6 /src/core/net/url_request_custom_job_delegate.h
parent9f5e3749cada6925f6127d02ecd647fb9a3874a7 (diff)
Switch additional response header to QMultiMap
For consistency with other response headers, even if it is going to be inconsistent with existing request headers. Pick-to: 6.6 Change-Id: I9e9c36ac20982d9c833486171fa9944c9059f471 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/net/url_request_custom_job_delegate.h')
-rw-r--r--src/core/net/url_request_custom_job_delegate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/net/url_request_custom_job_delegate.h b/src/core/net/url_request_custom_job_delegate.h
index 2e42d2741..efb516dc8 100644
--- a/src/core/net/url_request_custom_job_delegate.h
+++ b/src/core/net/url_request_custom_job_delegate.h
@@ -55,7 +55,7 @@ public:
QIODevice *requestBody();
void
- setAdditionalResponseHeaders(const QMap<QByteArray, QByteArray> &additionalResponseHeaders);
+ setAdditionalResponseHeaders(const QMultiMap<QByteArray, QByteArray> &additionalResponseHeaders);
void reply(const QByteArray &contentType, QIODevice *device);
void redirect(const QUrl &url);
void abort();
@@ -76,7 +76,7 @@ private:
QByteArray m_method;
QUrl m_initiatorOrigin;
const QMap<QByteArray, QByteArray> m_requestHeaders;
- QMap<QByteArray, QByteArray> m_additionalResponseHeaders;
+ QMultiMap<QByteArray, QByteArray> m_additionalResponseHeaders;
ResourceRequestBody m_resourceRequestBody;
};