зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1607815 - Remove unnecessary MOZ_ASSERT r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D61688 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0a71a3d8ce
Коммит
7832d37e89
|
@ -842,8 +842,10 @@ void LogHeaders(const char* lineStart) {
|
|||
}
|
||||
|
||||
nsresult HttpProxyResponseToErrorCode(uint32_t aStatusCode) {
|
||||
MOZ_ASSERT(aStatusCode >= 300,
|
||||
"Call HttpProxyResponseToErrorCode with successful status code!");
|
||||
// In proxy CONNECT case, we treat every response code except 200 as an error.
|
||||
// Even if the proxy server returns other 2xx codes (i.e. 206), this function
|
||||
// still returns an error code.
|
||||
MOZ_ASSERT(aStatusCode != 200);
|
||||
|
||||
nsresult rv;
|
||||
switch (aStatusCode) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче