It is invalid. The content-encoding
specifies the data transfer encoding used by the issuer of the content. UTF-8 is not a content encoding, it is a character set. Specifying the character set is done in the content-type
header:
content-type: text/plain; charset=utf-8
Valid content-encoding values are, for instance, gzip
, deflate
. An HTTP client should specify what content encoding it supports with the accept-encoding
header; the HTTP server will reply with a content-encoding
header.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…