Commit 0c0ba8ce authored by Kouhei Ueno's avatar Kouhei Ueno Committed by Commit Bot

SignedExchangeEnvelope: Add missing spec ref

Bug: 803774
Change-Id: I259e29f1fc0423e87983d89ac50794cfb1fb3fca
Reviewed-on: https://chromium-review.googlesource.com/c/1317218
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarKunihiko Sakamoto <ksakamoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605267}
parent e693648e
......@@ -125,8 +125,11 @@ bool ParseRequestMap(const cbor::Value& value,
if (name_str == kMethodKey)
continue;
// TODO(kouhei): Add spec ref here once
// https://github.com/WICG/webpackage/issues/161 is resolved.
// https://tools.ietf.org/html/draft-yasskin-httpbis-origin-signed-exchanges-impl-02
// Section 3.2:
// "For each request header field in `exchange`, the header field's
// lowercase name as a byte string to the header field's value as a byte
// string."
if (name_str != base::ToLowerASCII(name_str)) {
signed_exchange_utils::ReportErrorAndTraceEvent(
devtools_proxy,
......@@ -207,8 +210,11 @@ bool ParseResponseMap(const cbor::Value& value,
return false;
}
// TODO(kouhei): Add spec ref here once
// https://github.com/WICG/webpackage/issues/161 is resolved.
// https://tools.ietf.org/html/draft-yasskin-httpbis-origin-signed-exchanges-impl-02
// Section 3.2:
// "For each response header field in `exchange`, the header field's
// lowercase name as a byte string to the header field's value as a byte
// string."
if (name_str != base::ToLowerASCII(name_str)) {
signed_exchange_utils::ReportErrorAndTraceEvent(
devtools_proxy,
......
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