cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [2/8] git commit: Fix missing headers in Windows 8 Proxy
Date Thu, 10 Oct 2013 17:55:56 GMT
Fix missing headers in Windows 8 Proxy


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/e80d0788
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/e80d0788
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/e80d0788

Branch: refs/heads/master
Commit: e80d0788a61d6150487416369ba5aa1bd4a44e7e
Parents: 714bff1
Author: Maxime LUCE <somatic@live.fr>
Authored: Wed Sep 18 03:33:58 2013 +0200
Committer: Maxime LUCE <somatic@live.fr>
Committed: Wed Sep 18 03:33:58 2013 +0200

----------------------------------------------------------------------
 www/FileTransfer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/e80d0788/www/FileTransfer.js
----------------------------------------------------------------------
diff --git a/www/FileTransfer.js b/www/FileTransfer.js
index 6eb9d74..57c9821 100644
--- a/www/FileTransfer.js
+++ b/www/FileTransfer.js
@@ -42,7 +42,7 @@ function getBasicAuthHeader(urlString) {
 
         var credentials = null;
         var protocol = url.protocol + "//";
-        var origin = protocol + url.host;
+        var origin = protocol + url.host.replace(":" + url.port, ""); // Windows 8 (IE10)
append :80 or :443 to url.host
 
         // check whether there are the username:password credentials in the url
         if (url.href.indexOf(origin) !== 0) { // credentials found


Mime
View raw message