Index: WebCore/xml/XMLHttpRequest.cpp |
=================================================================== |
--- WebCore/xml/XMLHttpRequest.cpp (revision 73109) |
+++ WebCore/xml/XMLHttpRequest.cpp (working copy) |
@@ -586,6 +586,22 @@ |
createRequest(ec); |
} |
+#if ENABLE(3D_CANVAS) || ENABLE(BLOB) |
+void XMLHttpRequest::send(ArrayBuffer* body, ExceptionCode& ec) |
+{ |
+ if (!initSend(ec)) |
+ return; |
+ |
+ if (m_method != "GET" && m_method != "HEAD" && m_url.protocolInHTTPFamily()) { |
+ m_requestEntityBody = FormData::create(body->data(), body->byteLength()); |
+ if (m_upload) |
+ m_requestEntityBody->setAlwaysStream(true); |
+ } |
+ |
+ createRequest(ec); |
+} |
+#endif |
+ |
void XMLHttpRequest::createRequest(ExceptionCode& ec) |
{ |
#if ENABLE(BLOB) |