Fix choosing file name in case of multiple Content-Disposition headers
commit243fa1587baa2f7dd4131c2980e4c476424b636d
authormmenke <mmenke@chromium.org>
Tue, 18 Aug 2015 05:07:36 +0000 (17 22:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Aug 2015 05:08:31 +0000 (18 05:08 +0000)
treef4f1b85f40f19e7e743a910398c5546499a009aa
parent0ea17fce0d5218c909985e2216051eab79419463
Fix choosing file name in case of multiple Content-Disposition headers

We return an error when there are multiple different Content-Disposition
headers, but we deliberately allow multiple identical ones. This CL
fixes how the download name is chosen in that case.

BUG=487906

Review URL: https://codereview.chromium.org/1286943007

Cr-Commit-Position: refs/heads/master@{#343797}
content/browser/download/download_browsertest.cc
content/browser/download/download_resource_handler.cc
content/test/data/download/double-content-disposition.txt [new file with mode: 0644]
content/test/data/download/double-content-disposition.txt.mock-http-headers [new file with mode: 0644]