You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/09/30 23:10:24 UTC

[2/4] git commit: Fix missing headers in Windows 8 Proxy

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/dev
Commit: e80d0788a61d6150487416369ba5aa1bd4a44e7e
Parents: 714bff1
Author: Maxime LUCE <so...@live.fr>
Authored: Wed Sep 18 03:33:58 2013 +0200
Committer: Maxime LUCE <so...@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