Compare commits

...
4 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
Andrew Stephan 6808069a18 updated install instructions in readme 2016-02-24 13:52:29 -05:00
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ Please check [CHANGELOG.md](CHANGELOG.md) for details about updating to a new ve
The plugin conforms to the Cordova plugin specification, it can be installed
using the Cordova / Phonegap command line interface.
phonegap plugin add https://github.com/wymsee/cordova-HTTP.git
phonegap plugin add cordova-plugin-http
cordova plugin add https://github.com/wymsee/cordova-HTTP.git
cordova plugin add cordova-plugin-http
## Usage
+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]);
},