diff --git a/src/core/api/qwebengineurlrequestinfo.cpp b/src/core/api/qwebengineurlrequestinfo.cpp index 0aab4aa1b1e5639a83f535270837ef362a76f4a1..c6b85ddb0484ec9d8ce7cd8dab49791935bffc41 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 1443665af0b5b39f4b3ab5fc01e5d1da7cd5409b..008df77512b0dcf507d776d5ddc61c967d16c42a 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;