File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
nativescript-background-http Expand file tree Collapse file tree 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 {
186186 }
187187 }
188188
189+ var utf8 = options . utf8 ;
190+
191+ if ( utf8 ) {
192+ request . setUtf8Charset ( ) ;
193+ }
194+
189195 var displayNotificationProgress = typeof options . androidDisplayNotificationProgress === "boolean" ? options . androidDisplayNotificationProgress : true ;
190196 if ( displayNotificationProgress ) {
191197 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 {
149149 */
150150 description : string ;
151151
152+ /**
153+ * Use utf8 encode in requests
154+ */
155+ utf8 ?: boolean ;
152156
153157 /*
154158 * Use this to set if progress notification should be displayed or not
You can’t perform that action at this time.
0 commit comments