File tree 2 files changed +10
-0
lines changed
nativescript-background-http
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,12 @@ class Task extends ObservableBase {
186
186
}
187
187
}
188
188
189
+ var utf8 = options . utf8 ;
190
+
191
+ if ( utf8 ) {
192
+ request . setUtf8Charset ( ) ;
193
+ }
194
+
189
195
var displayNotificationProgress = typeof options . androidDisplayNotificationProgress === "boolean" ? options . androidDisplayNotificationProgress : true ;
190
196
if ( displayNotificationProgress ) {
191
197
request . setNotificationConfig ( new ( < any > net ) . gotev . uploadservice . UploadNotificationConfig ( ) ) ;
Original file line number Diff line number Diff line change @@ -149,6 +149,10 @@ export interface Request {
149
149
*/
150
150
description : string ;
151
151
152
+ /**
153
+ * Use utf8 encode in requests
154
+ */
155
+ utf8 ?: boolean ;
152
156
153
157
/*
154
158
* Use this to set if progress notification should be displayed or not
You can’t perform that action at this time.
0 commit comments