diff --git a/CHANGELOG.md b/CHANGELOG.md index 8962a7f..be00a9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.2.1](https://github.com/farfromrefug/nativescript-https/compare/v3.2.0...v3.2.1) (2021-07-01) + + +### Bug Fixes + +* **android:** support for application/x-www-form-urlencoded ([fb8db51](https://github.com/farfromrefug/nativescript-https/commit/fb8db514916dd1c29baa40016fc5302c64a79a41)) + + + + + # [3.2.0](https://github.com/farfromrefug/nativescript-https/compare/v3.1.3...v3.2.0) (2021-03-14) diff --git a/lerna.json b/lerna.json index 529473f..fb7629a 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "plugin" ], - "version": "3.2.0", + "version": "3.2.1", "command": { "publish": { "conventionalCommits": true diff --git a/package.json b/package.json index 816c5f4..37d9807 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "plugin.watch.android": "npm i && npm-watch build.android", "plugin.watch.ios": "npm i && npm-watch build.ios", "plugin.watch": "npm run plugin.watch.tsc & npm run plugin.watch.android & npm run plugin.watch.ios", - "publish": "npm run build && lerna publish --create-release=github", + "publish": "npm run build && lerna publish --create-release=github --force-publish", "commitmsg": "commitlint -e $GIT_PARAMS" }, "keywords": [ diff --git a/plugin/CHANGELOG.md b/plugin/CHANGELOG.md index 61a407b..177c628 100644 --- a/plugin/CHANGELOG.md +++ b/plugin/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.2.1](https://github.com/farfromrefug/nativescript-https/compare/v3.2.0...v3.2.1) (2021-07-01) + +**Note:** Version bump only for package @nativescript-community/https + + + + + # [3.2.0](https://github.com/farfromrefug/nativescript-https/compare/v3.1.3...v3.2.0) (2021-03-14) diff --git a/plugin/package.json b/plugin/package.json index b9f2c10..cdfb9a1 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript-community/https", - "version": "3.2.0", + "version": "3.2.1", "description": "Nativescript plugin for gestures", "main": "https", "sideEffects": false, diff --git a/src/https.android.ts b/src/https.android.ts index b4255a1..5822082 100644 --- a/src/https.android.ts +++ b/src/https.android.ts @@ -433,6 +433,12 @@ export function createRequest(opts: Https.HttpsRequestOptions): Https.HttpsReque } }); okHttpBody = builder.build(); + } else if (type === 'application/x-www-form-urlencoded') { + const builder = new okhttp3.FormBody.Builder(); + Object.keys(opts.body).forEach((key) => { + builder.add(key, opts.body[key]); + }); + okHttpBody = builder.build(); } else { let body; if (opts.body) {