commit | 7ecb032f5cfd6a90a99782f4f2f8ddb10ced57f8 | [log] [tgz] |
---|---|---|
author | Dan McArdle <dmcardle@chromium.org> | Wed Nov 18 08:55:33 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 18 08:55:33 2020 |
tree | d85c9e28ecfd36f60d46537aa609bf2d7dcc8e6e | |
parent | af29e96d50a95e6619df074590202e78c72cb07e [diff] |
Explicitly set "accept-encoding: identity" header for DoH URL requests. Currently, DnsHTTPAttempt does not set the accept-encoding header. URLRequestHttpJob::AddExtraHeaders() has been stepping in, typically choosing "gzip, deflate, br". If the DoH provider honored this request for compression, it would effectively strip padding from the DNS response, which is a privacy leak. To be clear, I have not observed any DoH providers compressing their response. It just seems prudent not to request compression that we do not want. Bug: 1051615 Change-Id: I0cad558f76298b7ed58de70b70b1954cd42b88f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2546476 Reviewed-by: Eric Orth <ericorth@chromium.org> Commit-Queue: Dan McArdle <dmcardle@chromium.org> Cr-Commit-Position: refs/heads/master@{#828645}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.