diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-04-05 17:19:53 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2019-04-05 17:19:53 +0000 |
commit | 2b623019de45daba51ae31d16e4b05e3c30adbc3 (patch) | |
tree | 453b0254bdb68114ecf9eeac86cf5731bdae938a /src | |
parent | a4deceac006cadf46123b07526e63750d44f0849 (diff) | |
parent | 00264a23a11861fa8a60833e2c3fe0e1ce90e593 (diff) |
Merge "Merge remote-tracking branch 'origin/5.12.3' into 5.12" into refs/staging/5.12
Diffstat (limited to 'src')
m--------- | src/3rdparty | 0 | ||||
-rw-r--r-- | src/core/web_contents_adapter.cpp | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/3rdparty b/src/3rdparty -Subproject e8bb1f1a6b2877c86519749ffab34f94bb6a102 +Subproject 4c7ecce30045daf172dceaeeb86351f60cc9199 diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index 21540f5da..3e5003960 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -630,13 +630,13 @@ void WebContentsAdapter::load(const QWebEngineHttpRequest &request) "HTTP-POST data can only be sent over HTTP(S) protocol")); return; } + + params.post_data = network::ResourceRequestBody::CreateFromBytes( + (const char*)request.postData().constData(), + request.postData().length()); break; } - params.post_data = network::ResourceRequestBody::CreateFromBytes( - (const char*)request.postData().constData(), - request.postData().length()); - // convert the custom headers into the format that chromium expects QVector<QByteArray> headers = request.headers(); for (QVector<QByteArray>::const_iterator it = headers.cbegin(); it != headers.cend(); ++it) { |