From 06731a33c0e5fe764548cb3f2b9d1c215cd49404 Mon Sep 17 00:00:00 2001 From: Michael Bruning Date: Tue, 24 Nov 2015 17:46:25 +0100 Subject: Rename setExtraHeader to setHttpHeader in QWebEngineUrlRequestInfo. Also make a small update to the documentation of the method. Change-Id: Ie19578ffccfd30c884cdfe882dffcdae6637e8e2 Reviewed-by: Leena Miettinen Reviewed-by: Kai Koehne --- src/core/api/qwebengineurlrequestinfo.cpp | 4 ++-- src/core/api/qwebengineurlrequestinfo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/api') diff --git a/src/core/api/qwebengineurlrequestinfo.cpp b/src/core/api/qwebengineurlrequestinfo.cpp index 0aab4aa1b..c6b85ddb0 100644 --- a/src/core/api/qwebengineurlrequestinfo.cpp +++ b/src/core/api/qwebengineurlrequestinfo.cpp @@ -274,10 +274,10 @@ void QWebEngineUrlRequestInfo::block(bool shouldBlock) } /*! - Sets an extra request header for this request with \a name and \a value. + Sets the request header \a name to \a value for this request. */ -void QWebEngineUrlRequestInfo::setExtraHeader(const QByteArray &name, const QByteArray &value) +void QWebEngineUrlRequestInfo::setHttpHeader(const QByteArray &name, const QByteArray &value) { Q_D(QWebEngineUrlRequestInfo); d->changed = true; diff --git a/src/core/api/qwebengineurlrequestinfo.h b/src/core/api/qwebengineurlrequestinfo.h index 1443665af..008df7751 100644 --- a/src/core/api/qwebengineurlrequestinfo.h +++ b/src/core/api/qwebengineurlrequestinfo.h @@ -92,7 +92,7 @@ public: void block(bool shouldBlock); void redirect(const QUrl &url); - void setExtraHeader(const QByteArray &name, const QByteArray &value); + void setHttpHeader(const QByteArray &name, const QByteArray &value); private: friend class QtWebEngineCore::NetworkDelegateQt; -- cgit v1.2.3