mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
fixes for useBasicAuth and setHeader for angular use
This commit is contained in:
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