From c7847b673c4075e05213f3edfd06c2e6ddfd6179 Mon Sep 17 00:00:00 2001 From: Tigran Najaryan Date: Fri, 23 Sep 2022 14:08:50 -0400 Subject: [PATCH] Change MAY to SHOULD for Server to Client compression Resolves https://github.com/open-telemetry/opamp-spec/issues/123 We want stronger requirements to use compression. --- specification.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification.md b/specification.md index ded9098..72dbf1c 100644 --- a/specification.md +++ b/specification.md @@ -382,7 +382,7 @@ The Client MAY compress the request body using gzip method and MUST specify "Content-Encoding: gzip" in that case. Server implementations MUST honour the "Content-Encoding" header and MUST support gzipped or uncompressed request bodies. -The Server MAY compress the response if the Client indicated it can accept compressed +The Server SHOULD compress the response if the Client indicated it can accept compressed response via the "Accept-Encoding" header. ## AgentToServer and ServerToAgent Messages