diff options
Diffstat (limited to 'WebKit/qt/Api/qwebnetworkinterface.cpp')
-rw-r--r-- | WebKit/qt/Api/qwebnetworkinterface.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/WebKit/qt/Api/qwebnetworkinterface.cpp b/WebKit/qt/Api/qwebnetworkinterface.cpp index fd0c694..d68140d 100644 --- a/WebKit/qt/Api/qwebnetworkinterface.cpp +++ b/WebKit/qt/Api/qwebnetworkinterface.cpp @@ -135,9 +135,8 @@ void QWebNetworkRequestPrivate::init(const QString &method, const QUrl &url, con // handle and perform a 'POST' request if (method == "POST") { - Vector<char> data; - resourceRequest->httpBody()->flatten(data); - postData = QByteArray(data.data(), data.size()); + DeprecatedString pd = resourceRequest->httpBody()->flattenToString().deprecatedString(); + postData = QByteArray(pd.ascii(), pd.length()); httpHeader.setValue(QLatin1String("content-length"), QString::number(postData.size())); } } |