diff options
| author | Mate Barany <[email protected]> | 2024-06-21 16:10:22 +0200 |
|---|---|---|
| committer | Mate Barany <[email protected]> | 2024-06-25 17:13:06 +0200 |
| commit | 704362f3dd06798c8c33ce48aa6c71fa3ac4624f (patch) | |
| tree | 5414464693f21c26af8661ebe37285e7342bf15c | |
| parent | 3302b0cdc15995fb9e70cf9e911d3ab408691b42 (diff) | |
Add a note to QFormDataPartBuilder::setBodyDevice
If the body is sequential, QNAM::post should be called after body has
emitted finished.
As this is already mentioned in the documentation of
QHttpPart::setBodyDevice it probably won't hurt to mention it here
as well.
Task-number: QTBUG-125985
Pick-to: 6.8
Change-Id: Iaa29c45b8da41a9af893523ff140afa9a0945f95
Reviewed-by: Paul Wicking <[email protected]>
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
| -rw-r--r-- | src/network/access/qformdatabuilder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/access/qformdatabuilder.cpp b/src/network/access/qformdatabuilder.cpp index 1d2054c9564..0428f09a813 100644 --- a/src/network/access/qformdatabuilder.cpp +++ b/src/network/access/qformdatabuilder.cpp @@ -167,6 +167,10 @@ QFormDataPartBuilder &QFormDataPartBuilder::setBody(QByteArrayView data, ownership of \a body, i.e. the device must be closed and destroyed if necessary. + \note If \a body is sequential (e.g. sockets, but not files), + QNetworkAccessManager::post() should be called after \a body has emitted + finished(). + \sa setBody(), QHttpPart::setBodyDevice() */ |
