Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3CCAB10603 for ; Mon, 30 Sep 2013 21:10:30 +0000 (UTC) Received: (qmail 26452 invoked by uid 500); 30 Sep 2013 21:10:28 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 26372 invoked by uid 500); 30 Sep 2013 21:10:24 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 26335 invoked by uid 99); 30 Sep 2013 21:10:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 21:10:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 37EC2833805; Mon, 30 Sep 2013 21:10:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: purplecabbage@apache.org To: commits@cordova.apache.org Date: Mon, 30 Sep 2013 21:10:24 -0000 Message-Id: <952328bae759474abde184945bef4169@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Wed Sep 18 03:33:58 2013 +0200 Committer: Maxime LUCE 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