Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nativescript-background-http/background-http.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ class Task extends ObservableBase {
}
}

var utf8 = options.utf8;

if (utf8) {
request.setUtf8Charset();
}

var displayNotificationProgress = typeof options.androidDisplayNotificationProgress === "boolean" ? options.androidDisplayNotificationProgress : true;
if (displayNotificationProgress) {
request.setNotificationConfig(new (<any>net).gotev.uploadservice.UploadNotificationConfig());
Expand Down
4 changes: 4 additions & 0 deletions nativescript-background-http/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ export interface Request {
*/
description: string;

/**
* Use utf8 encode in requests
*/
utf8?: boolean;

/*
* Use this to set if progress notification should be displayed or not
Expand Down