summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/WebRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebRequest.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/WebRequest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequest.cpp b/WebKit/android/WebCoreSupport/WebRequest.cpp
index d24c6cc..937a365 100644
--- a/WebKit/android/WebCoreSupport/WebRequest.cpp
+++ b/WebKit/android/WebCoreSupport/WebRequest.cpp
@@ -113,11 +113,12 @@ void WebRequest::finish(bool success)
m_request = 0;
}
-void WebRequest::AppendBytesToUpload(const char* bytes, int bytesLen)
+void WebRequest::AppendBytesToUpload(WTF::Vector<char>* data)
{
// AppendBytesToUpload is only valid before calling start
ASSERT(m_loadState == Created, "Start called on a WebRequest not in CREATED state: (%s)", m_url.c_str());
- m_request->AppendBytesToUpload(bytes, bytesLen);
+ m_request->AppendBytesToUpload(data->data(), data->size());
+ delete data;
}
void WebRequest::start(bool isPrivateBrowsing)