From 7b0195bdf441532106df6eb2baf5a9ada1068761 Mon Sep 17 00:00:00 2001 From: Matt Barr Date: Fri, 16 Oct 2020 13:19:49 -0400 Subject: [PATCH] fix(http): add missing type to serialiser property (#3532) cordova http API allows for 'raw' serializer, and in fact 'raw' is referenced in several places in this file. It is even possible to set the serializer using `setDataSerializer('raw')` This serializer is required for sending binary data. --- src/@ionic-native/plugins/http/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index 454f73df80..250324d82c 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -352,7 +352,7 @@ export class HTTP extends IonicNativePlugin { method: 'get' | 'post' | 'put' | 'patch' | 'head' | 'delete' | 'options' | 'upload' | 'download'; data?: { [index: string]: any }; params?: { [index: string]: string | number }; - serializer?: 'json' | 'urlencoded' | 'utf8' | 'multipart'; + serializer?: 'json' | 'urlencoded' | 'utf8' | 'multipart' | 'raw'; timeout?: number; headers?: { [index: string]: string }; filePath?: string | string[];