1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-05 01:32:31 +00: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;