summaryrefslogtreecommitdiffstats
path: root/net/data
diff options
context:
space:
mode:
authorpalmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-10 20:24:36 +0000
committerpalmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-10 20:24:36 +0000
commit9f972ecef902aff29dbce13b54b5440145339d8a (patch)
treef48ac83734dd5e1c53eb2f8a3f8c3e1a0f354f04 /net/data
parent3e8eb5e2aff8540f5b6f74c385063495df78a495 (diff)
downloadchromium_src-9f972ecef902aff29dbce13b54b5440145339d8a.zip
chromium_src-9f972ecef902aff29dbce13b54b5440145339d8a.tar.gz
chromium_src-9f972ecef902aff29dbce13b54b5440145339d8a.tar.bz2
Don't set MODE_DEFAULT when adding HPKP header.
Leave that to the default value, or whatever value an HSTS header set. TEST=net_unittests; after visiting https://www.mv-rechberghausen.de, query that domain in chrome://net-internal/#hsts and expect pins AND mode STRICT. BUG=226068 Review URL: https://chromiumcodereview.appspot.com/13483007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r--net/data/url_request_unittest/hsts-and-hpkp-headers.html1
-rw-r--r--net/data/url_request_unittest/hsts-and-hpkp-headers.html.mock-http-headers8
2 files changed, 9 insertions, 0 deletions
diff --git a/net/data/url_request_unittest/hsts-and-hpkp-headers.html b/net/data/url_request_unittest/hsts-and-hpkp-headers.html
new file mode 100644
index 0000000..364322d
--- /dev/null
+++ b/net/data/url_request_unittest/hsts-and-hpkp-headers.html
@@ -0,0 +1 @@
+This file is boring; all the action's in the .mock-http-headers.
diff --git a/net/data/url_request_unittest/hsts-and-hpkp-headers.html.mock-http-headers b/net/data/url_request_unittest/hsts-and-hpkp-headers.html.mock-http-headers
new file mode 100644
index 0000000..2b66356
--- /dev/null
+++ b/net/data/url_request_unittest/hsts-and-hpkp-headers.html.mock-http-headers
@@ -0,0 +1,8 @@
+HTTP/1.1 200 OK
+Cache-Control: private
+Content-Type: text/html; charset=ISO-8859-1
+X-Multiple-Entries: a
+X-Multiple-Entries: b
+Strict-Transport-Security: max-age=12300
+Strict-Transport-Security: max-age=12300; includeSubdomains
+Public-Key-Pins: max-age=50000; pin-sha1="K9e3/nFL5j90GuVJOJBv6WXpvcs="; pin-sha256="kd16uBd5KFa9IJjF0X+8B+BXdAWkYYRZruNKDZ0M9Zw="