Skip to content

Update FiresheepResult.js #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions xpi/modules/FiresheepResult.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//
// FiresheepResult.js
// Part of the Firesheep project.
//
// Copyright (C) 2010 Eric Butler
//
// Authors:
// Eric Butler <[email protected]>
// Eric Butler &lt;[email protected]&gt;
//
// 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
Expand All @@ -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 <http://www.gnu.org/licenses/>.
// along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.

Components.utils.import('resource://firesheep/util/Utils.js');
Components.utils.import('resource://firesheep/util/CookieMonster.js');
Expand Down Expand Up @@ -60,7 +59,7 @@ FiresheepResult.prototype = {
channel.setRequestHeader('User-Agent', this.firstPacket.userAgent, false);
}

if (cookies.length > 0) {
if (cookies.length &gt; 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('; '));
Expand All @@ -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)
Expand All @@ -91,4 +90,4 @@ FiresheepResult.prototype = {
throw e;
}
}
};
};