diff options
author | Lorn Potter <[email protected]> | 2020-07-10 08:52:16 +1000 |
---|---|---|
committer | Lorn Potter <[email protected]> | 2020-07-29 09:09:03 +1000 |
commit | 44d4bc6d90442e1f82b8f921165360fecf3bed67 (patch) | |
tree | c3f9e6cfc2b59f379e75247d908f8c90a61c64f4 /src/network/access/qnetworkrequest.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 <[email protected]>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
-rw-r--r-- | src/network/access/qnetworkrequest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/access/qnetworkrequest.cpp b/src/network/access/qnetworkrequest.cpp index f8cb3feb697..46c4648cbe8 100644 --- a/src/network/access/qnetworkrequest.cpp +++ b/src/network/access/qnetworkrequest.cpp @@ -905,7 +905,8 @@ void QNetworkRequest::setHttp2Configuration(const QHttp2Configuration &configura { d->h2Configuration = configuration; } - +#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC) +#if QT_CONFIG(http) || defined(Q_CLANG_QDOC) || defined (Q_OS_WASM) /*! \since 5.15 @@ -939,7 +940,7 @@ void QNetworkRequest::setTransferTimeout(int timeout) { d->transferTimeout = timeout; } -#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC) +#endif // QT_CONFIG(http) || defined(Q_CLANG_QDOC) || defined (Q_OS_WASM) static QByteArray headerName(QNetworkRequest::KnownHeaders header) { |