Skip to content

Commit 68633f1

Browse files
committed
chore: update changelog and readme
1 parent ee26b78 commit 68633f1

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.3.0
4+
5+
- Feature #101: Support "multipart/form-data" requests (thanks SDA SE Open Industry Solutions)
6+
37
## 2.2.0
48

59
- Feature #239: add enumeration style object for error codes

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ You can choose one of these:
9292
* `urlencoded`: send data as url encoded content in body (content type "application/x-www-form-urlencoded")
9393
* `json`: send data as JSON encoded content in body (content type "application/json")
9494
* `utf8`: send data as plain UTF8 encoded string in body (content type "plain/text")
95+
* `multipart`: send FormData objects as multipart content in body (content type "multipart/form-data")
9596

9697
This defaults to `urlencoded`. You can also override the default content type headers by specifying your own headers (see [setHeader](#setHeader)).
9798

98-
__Caution__: `urlencoded` does not support serializing deep structures whereas `json` does.
99+
:warning: `urlencoded` does not support serializing deep structures whereas `json` does.
100+
101+
:warning: `multipart` depends on several Web API standards which need to be supported in your web view. Check out https://github.com/silkimen/cordova-plugin-advanced-http/wiki/Web-APIs-required-for-Multipart-requests for more info.
99102

100103
### setRequestTimeout
101104
Set how long to wait for a request to respond, in seconds.
@@ -176,15 +179,6 @@ This function was deprecated in 2.0.9. Use ["setFollowRedirect"](#setFollowRedir
176179
### setSSLCertMode (deprecated)
177180
This function was deprecated in 2.0.8. Use ["setServerTrustMode"](#setServerTrustMode) instead.
178181

179-
### enableSSLPinning (obsolete)
180-
This function was removed in 2.0.0. Use ["setServerTrustMode"](#setServerTrustMode) to enable SSL pinning (mode "pinned").
181-
182-
### acceptAllCerts (obsolete)
183-
This function was removed in 2.0.0. Use ["setServerTrustMode"](#setServerTrustMode) to disable checking certs (mode "nocheck").
184-
185-
### validateDomainName (obsolete)
186-
This function was removed in v1.6.2. Domain name validation is disabled automatically when you set server trust mode to "nocheck".
187-
188182
### removeCookies
189183
Remove all cookies associated with a given URL.
190184

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-advanced-http",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
55
"scripts": {
66
"updatecert": "node ./scripts/update-e2e-server-cert.js && node ./scripts/update-e2e-client-cert.js",

0 commit comments

Comments
 (0)