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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user