mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
extended StreamBody removed
This commit is contained in:
@ -31,11 +31,6 @@ export function request(options: http.HttpRequestOptions): promises.Promise<http
|
|||||||
request.setBody(new stringBody(options.content));
|
request.setBody(new stringBody(options.content));
|
||||||
}
|
}
|
||||||
else if (typeof options.content !== "undefined") {
|
else if (typeof options.content !== "undefined") {
|
||||||
var streamBody = com.koushikdutta.async.http.body.StreamBody.extends({
|
|
||||||
getContentType: function () {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
request.setBody(new com.koushikdutta.async.http.body.StreamBody(new java.io.ByteArrayInputStream(options.content), options.content.length));
|
request.setBody(new com.koushikdutta.async.http.body.StreamBody(new java.io.ByteArrayInputStream(options.content), options.content.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user