mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
f3f243d7b7
commit
6077a89639
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user