envoyproxy/envoy

compression: GET and HEAD headers do not match

Open

#14,225 创建于 2020年12月1日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)C++ (5,373 fork)batch import
area/compressionhelp wanted

仓库指标

Star
 (27,997 star)
PR 合并指标
 (平均合并 8天) (30 天内合并 378 个 PR)

描述

Title: Content-Encoding header is not added to HEAD responses.

Description: Following header is not present in HEAD responses: content-encoding: gzip

RFC7231 specifies the following:

The server SHOULD send the same header fields in response to a HEAD request as it would have sent if the request had been a GET, except that the payload header fields (Section 3.3) MAY be omitted.

(NB! Content-Encoding is not in the list of payload-specific headers.)

Therefore this may cause issues with clients that follow RFC and expect HEAD and GET headers to match.

cc: @rojkov @antoniovicente

贡献者指南