diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2020-07-10 08:52:16 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2020-07-29 09:09:03 +1000 |
commit | 44d4bc6d90442e1f82b8f921165360fecf3bed67 (patch) | |
tree | c3f9e6cfc2b59f379e75247d908f8c90a61c64f4 /src/network/access/qnetworkreplywasmimpl.cpp | |
parent | 762b5f09a61f1f58c0ab7365bf5e826438421c12 (diff) |
wasm: fix setTransferTimeout
WebAssembly does not need the http feature, but these functions were
hidden behind that feature.
Fixes: QTBUG-83867
Pick-to: 5.15
Change-Id: I7cd9aa73003f45ccbc2613c67c21e4067d6edddd
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/network/access/qnetworkreplywasmimpl.cpp')
-rw-r--r-- | src/network/access/qnetworkreplywasmimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkreplywasmimpl.cpp b/src/network/access/qnetworkreplywasmimpl.cpp index c2e66fea5b..1809672401 100644 --- a/src/network/access/qnetworkreplywasmimpl.cpp +++ b/src/network/access/qnetworkreplywasmimpl.cpp @@ -268,7 +268,7 @@ void QNetworkReplyWasmImplPrivate::doSendRequest() attr.onerror = QNetworkReplyWasmImplPrivate::downloadFailed; attr.onprogress = QNetworkReplyWasmImplPrivate::downloadProgress; attr.onreadystatechange = QNetworkReplyWasmImplPrivate::stateChange; - attr.timeoutMSecs = QNetworkRequest::DefaultTransferTimeoutConstant; + attr.timeoutMSecs = request.transferTimeout(); attr.userData = reinterpret_cast<void *>(this); QString dPath = QStringLiteral("/home/web_user/") + request.url().fileName(); |