We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af64560 + 76d567c commit f3d8206Copy full SHA for f3d8206
src/angular/xhr.ts
@@ -1,7 +1,7 @@
1
import {XhrFactory } from "@angular/common/http";
2
import {Injectable} from "@angular/core";
3
import * as types from "@nativescript/core/utils/types";
4
-import { request } from "..";
+import { request, HTTPFormData } from "..";
5
import { HttpRequestOptions, HttpResponse, Trace } from "@nativescript/core";
6
7
namespace XMLHttpRequestResponseType {
@@ -261,7 +261,7 @@ export class NSHTTPXMLHttpRequest {
261
262
// @ts-ignore
263
this._options.content = Blob.InternalAccessor.getBuffer(data);
264
- } else if (data instanceof ArrayBuffer) {
+ } else if (data instanceof ArrayBuffer || data instanceof HTTPFormData) {
265
this._options.content = data;
266
}
267
0 commit comments