mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-07-26 00:00:14 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04fdbed1fb | ||
|
|
3aab872ec0 | ||
|
|
b2e7878da4 |
+1
-1
@@ -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",
|
||||
|
||||
Vendored
+6
-2
@@ -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]);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user