From 06e51523a39b2a7e691c3ff9349ddeca1706ce84 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Thu, 25 Apr 2013 09:42:55 +0300 Subject: [PATCH] Update FiresheepResult.js Changed "if (req.status == 200 {" To "if (req.status == 200 || req.status == 302) {" - Added to prevent Ajax Status 302 message --- xpi/modules/FiresheepResult.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/xpi/modules/FiresheepResult.js b/xpi/modules/FiresheepResult.js index badb3b2..4dd224a 100644 --- a/xpi/modules/FiresheepResult.js +++ b/xpi/modules/FiresheepResult.js @@ -1,11 +1,10 @@ -// // FiresheepResult.js // Part of the Firesheep project. // // Copyright (C) 2010 Eric Butler // // Authors: -// Eric Butler +// Eric Butler <eric@codebutler.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -18,7 +17,7 @@ // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License -// along with this program. If not, see . +// along with this program. If not, see <http://www.gnu.org/licenses/>. Components.utils.import('resource://firesheep/util/Utils.js'); Components.utils.import('resource://firesheep/util/CookieMonster.js'); @@ -60,7 +59,7 @@ FiresheepResult.prototype = { channel.setRequestHeader('User-Agent', this.firstPacket.userAgent, false); } - if (cookies.length > 0) { + if (cookies.length > 0) { // Simply setting the 'Cookie' header here does not work: cookies from the browser // get appended later on. CookieMonster takes care of this problem. CookieMonster.addChannel(channel, cookies.join('; ')); @@ -77,7 +76,7 @@ FiresheepResult.prototype = { throw e; } - if (req.status == 200) { + if (req.status == 200 || req.status == 302) { var result = { request: req, body: Utils.parseHtml(req.responseText) @@ -91,4 +90,4 @@ FiresheepResult.prototype = { throw e; } } -}; \ No newline at end of file +};