changed the on header notification to actually request the observers of the correct notification. OnHeaders indicates a response has come back, thus those registered for the RESPONSE should get notified, not those registered for the REQUEST

This commit is contained in:
valeski%netscape.com 1999-11-19 00:15:42 +00:00
parent f3f243d7b7
commit 6077a89639

View File

@ -876,7 +876,7 @@ nsresult nsHTTPChannel::OnHeadersAvailable()
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsISimpleEnumerator> pModules;
rv = pNetModuleMgr->EnumerateModules(NS_NETWORK_MODULE_MANAGER_HTTP_REQUEST_PROGID, getter_AddRefs(pModules));
rv = pNetModuleMgr->EnumerateModules(NS_NETWORK_MODULE_MANAGER_HTTP_RESPONSE_PROGID, getter_AddRefs(pModules));
if (NS_FAILED(rv)) return rv;
// Go through the external modules and notify each one.