make code more robust

git-svn-id: svn://10.0.0.236/branches/HttpConnectionMagic_20010415_BRANCH@94430 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2001-05-10 00:32:42 +00:00
parent a8f751a9d9
commit 29d9b38fe8

View File

@@ -167,7 +167,10 @@ nsHttpChannel::Init(nsIURI *uri,
if (NS_FAILED(rv)) return rv;
// Notify nsIHttpNotify implementations
return nsHttpHandler::get()->OnModifyRequest(this);
rv = nsHttpHandler::get()->OnModifyRequest(this);
NS_ASSERTION(NS_SUCCEEDED(rv), "OnModifyRequest failed");
return NS_OK;
}
//-----------------------------------------------------------------------------
@@ -408,7 +411,8 @@ nsHttpChannel::ProcessNormal()
}
// notify nsIHttpNotify implementations
nsHttpHandler::get()->OnExamineResponse(this);
rv = nsHttpHandler::get()->OnExamineResponse(this);
NS_ASSERTION(NS_SUCCEEDED(rv), "OnExamineResponse failed");
return mListener->OnStartRequest(this, mListenerContext);
}