From b6bf60efe7f09e1b750924d6c540a715678cca95 Mon Sep 17 00:00:00 2001 From: Jaykumar Gosar Date: Mon, 20 Dec 2021 11:25:17 -0800 Subject: [PATCH] Revert escape changes for timestamp header serialization The `http-date` timestampFormat is unambigous in terms of where commas are located, so do not need escaping according to RFC 7230 sec 3.2.6. --- smithy-aws-protocol-tests/model/restJson1/http-headers.smithy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smithy-aws-protocol-tests/model/restJson1/http-headers.smithy b/smithy-aws-protocol-tests/model/restJson1/http-headers.smithy index 62e6639cada..59642634cbb 100644 --- a/smithy-aws-protocol-tests/model/restJson1/http-headers.smithy +++ b/smithy-aws-protocol-tests/model/restJson1/http-headers.smithy @@ -112,7 +112,7 @@ apply InputAndOutputWithHeaders @httpRequestTests([ method: "POST", uri: "/InputAndOutputWithHeaders", headers: { - "X-TimestampList": "\"Mon, 16 Dec 2019 23:48:18 GMT\", \"Mon, 16 Dec 2019 23:48:18 GMT\"" + "X-TimestampList": "Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT" }, body: "", params: { @@ -261,7 +261,7 @@ apply InputAndOutputWithHeaders @httpResponseTests([ protocol: restJson1, code: 200, headers: { - "X-TimestampList": "\"Mon, 16 Dec 2019 23:48:18 GMT\", \"Mon, 16 Dec 2019 23:48:18 GMT\"" + "X-TimestampList": "Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT" }, params: { headerTimestampList: [1576540098, 1576540098]