Reviewed by Sam.
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Feb 2008 00:48:06 +0000 (00:48 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Feb 2008 00:48:06 +0000 (00:48 +0000)
        * Api/qwebnetworkinterface.cpp:
        (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30388 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/qt/Api/qwebnetworkinterface.cpp
WebKit/qt/ChangeLog

index d68140d..fd0c694 100644 (file)
@@ -135,8 +135,9 @@ void QWebNetworkRequestPrivate::init(const QString &method, const QUrl &url, con
 
         // handle and perform a 'POST' request
         if (method == "POST") {
-            DeprecatedString pd = resourceRequest->httpBody()->flattenToString().deprecatedString();
-            postData = QByteArray(pd.ascii(), pd.length());
+            Vector<char> data;
+            resourceRequest->httpBody()->flatten(data);
+            postData = QByteArray(data.data(), data.size());
             httpHeader.setValue(QLatin1String("content-length"), QString::number(postData.size()));
         }
     }
index 6caa002..d00d1fe 100644 (file)
@@ -1,3 +1,10 @@
+2008-02-18  Darin Adler  <darin@apple.com>
+
+        Reviewed by Sam.
+
+        * Api/qwebnetworkinterface.cpp:
+        (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
+
 2008-01-24  David Boddie  <dboddie@trolltech.com>
 
         Reviewed by Simon.