From 8559a3d4f30cf6b445eeb63feb5ce48a0cb97030 Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Wed, 25 Jun 2003 17:24:48 +0000 Subject: [PATCH] fixes smoketest blocker, bug 210579 "hang trying to access page with invalid headers" r=dougt sr=bzbarsky --- netwerk/protocol/http/src/nsHttpChannel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwerk/protocol/http/src/nsHttpChannel.cpp b/netwerk/protocol/http/src/nsHttpChannel.cpp index b74430e3ad3..b0381b8b9b9 100644 --- a/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -2569,7 +2569,7 @@ nsHttpChannel::GetContentType(nsACString &value) NS_IMETHODIMP nsHttpChannel::SetContentType(const nsACString &value) { - if (mIsPending) { + if (mListener) { if (!mResponseHead) return NS_ERROR_NOT_AVAILABLE; @@ -2603,7 +2603,7 @@ nsHttpChannel::GetContentCharset(nsACString &value) NS_IMETHODIMP nsHttpChannel::SetContentCharset(const nsACString &value) { - if (mIsPending) { + if (mListener) { if (!mResponseHead) return NS_ERROR_NOT_AVAILABLE;