Skip to content

Commit

Permalink
Fix #204: broken support for cordova-android < 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sefa Ilkimen committed Apr 15, 2019
1 parent 0bf3965 commit 620ce3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.0.9

- Fixed #204: broken support for cordova-android < 7.0

## 2.0.8

- Fixed #198: cookie header is always passed even if there is no cookie
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-advanced-http",
"version": "2.0.8",
"version": "2.0.9",
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
"scripts": {
"updatecert": "node ./scripts/update-test-cert.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private boolean setServerTrustMode(final JSONArray args, final CallbackContext c

private boolean setClientAuthMode(final JSONArray args, final CallbackContext callbackContext) throws JSONException {
CordovaClientAuth runnable = new CordovaClientAuth(args.getString(0), args.getString(1), this.cordova.getActivity(),
this.cordova.getContext(), this.tlsConfiguration, callbackContext);
this.cordova.getActivity().getApplicationContext(), this.tlsConfiguration, callbackContext);

cordova.getThreadPool().execute(runnable);

Expand Down

0 comments on commit 620ce3f

Please sign in to comment.