1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00
This commit is contained in:
Nikolay Kim 2017-11-30 07:42:02 -08:00
parent 6c4fdf604b
commit a0bca2d4cf

View File

@ -320,7 +320,7 @@ impl HttpResponseBuilder {
///
/// By default `ContentEncoding::Auto` is used, which automatically
/// negotiates content encoding based on request's `Accept-Encoding` headers.
/// To enforce specific encodnign other `ContentEncoding` could be used.
/// To enforce specific encoding, use specific ContentEncoding` value.
pub fn content_encoding(&mut self, enc: ContentEncoding) -> &mut Self {
if let Some(parts) = parts(&mut self.parts, &self.err) {
parts.encoding = enc;