diff options
author | bustamante <bustamante@google.com> | 2016-01-04 16:37:01 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-05 00:39:36 +0000 |
commit | 88096a96cb4d0df8c1ea8f4bfc61e915d64a30d7 (patch) | |
tree | 12368c5a8d815b4fb5d99e1d456a1d37fae727bb /tools/chrome_proxy | |
parent | d54fe4906e431c1dceca51be976eadcf9453d15c (diff) | |
download | chromium_src-88096a96cb4d0df8c1ea8f4bfc61e915d64a30d7.zip chromium_src-88096a96cb4d0df8c1ea8f4bfc61e915d64a30d7.tar.gz chromium_src-88096a96cb4d0df8c1ea8f4bfc61e915d64a30d7.tar.bz2 |
Use GET instead of HEAD for DRP check
Occassionally HEAD requests will consistently be met with a block-once
response causing the DRP check to timeout. Instead lets use GET requests
that don't seem to encounter this issue.
BUG=574218
Review URL: https://codereview.chromium.org/1552263005
Cr-Commit-Position: refs/heads/master@{#367428}
Diffstat (limited to 'tools/chrome_proxy')
-rw-r--r-- | tools/chrome_proxy/common/chrome_proxy_measurements.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/chrome_proxy/common/chrome_proxy_measurements.py b/tools/chrome_proxy/common/chrome_proxy_measurements.py index 0ac6254..097c327 100644 --- a/tools/chrome_proxy/common/chrome_proxy_measurements.py +++ b/tools/chrome_proxy/common/chrome_proxy_measurements.py @@ -29,7 +29,7 @@ def WaitForViaHeader(tab, url="http://check.googlezip.net/test.html"): 'if (via_header_found) { return true; }' 'try {' 'var xmlhttp = new XMLHttpRequest();' - 'xmlhttp.open("HEAD",url,true);' + 'xmlhttp.open("GET",url,true);' 'xmlhttp.onload=function(e) {' # Store the last response received for debugging, this will be shown # in telemetry dumps if the request fails or times out. |