Compare commits

...
3 Commits
Author SHA1 Message Date
Andrew Stephan 04fdbed1fb 1.0.2 2016-03-03 10:56:20 -05:00
Andrew Stephan 3aab872ec0 1.0.1 2016-03-03 10:55:33 -05:00
Andrew Stephan b2e7878da4 fixes for useBasicAuth and setHeader for angular use 2016-03-03 10:55:09 -05:00
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-http",
"version": "1.0.0",
"version": "1.0.2",
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
"cordova": {
"id": "cordova-plugin-http",
+6 -2
View File
@@ -137,8 +137,12 @@ if (typeof angular !== "undefined") {
var cordovaHTTP = {
getBasicAuthHeader: http.getBasicAuthHeader,
useBasicAuth: http.useBasicAuth,
setHeader: http.setHeader,
useBasicAuth: function(username, password) {
return http.useBasicAuth(username, password);
},
setHeader: function(header, value) {
return http.setHeader(header, value);
},
enableSSLPinning: function(enable) {
return makePromise(http.enableSSLPinning, [enable]);
},