Commit 32b9c269 authored by mnissler@chromium.org's avatar mnissler@chromium.org

Tighten the check for detecting misbehaving proxies in device management requests.

BUG=chromium-os:20775
TEST=Using a misconfigured-proxy but with direct connections working, registering without a serial shows the serial number invalid error instead of network error.


Review URL: http://codereview.chromium.org/9317033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120073 0039d316-1c4b-4281-b951-d872f2087c98
parent 1658b213
......@@ -540,6 +540,7 @@ void DeviceManagementService::OnURLFetchComplete(
LOG(WARNING) << "Proxy failed while contacting dmserver.";
retry = true;
} else if (source->GetStatus().is_success() &&
source->GetResponseCode() == kSuccess &&
source->WasFetchedViaProxy() &&
!IsProtobufMimeType(source)) {
// The proxy server can be misconfigured but pointing to an existing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment