diff options
-rw-r--r-- | tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp b/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp index b0ef9a1ba..ed7d7ad09 100644 --- a/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp +++ b/tests/auto/core/qwebengineurlrequestinterceptor/tst_qwebengineurlrequestinterceptor.cpp @@ -96,11 +96,11 @@ public: bool interceptRequest(QWebEngineUrlRequestInfo &info) override { - info.blockRequest(info.method() != QByteArrayLiteral("GET")); - if (info.url().toString().endsWith(QLatin1String("__placeholder__"))) - info.redirectTo(QUrl("qrc:///resources/content.html")); + info.block(info.requestMethod() != QByteArrayLiteral("GET")); + if (info.requestUrl().toString().endsWith(QLatin1String("__placeholder__"))) + info.redirect(QUrl("qrc:///resources/content.html")); - observedUrls.append(info.url()); + observedUrls.append(info.requestUrl()); return shouldIntercept; } TestRequestInterceptor(bool intercept) |