mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-30 18:44:35 +01:00
fix typo
This commit is contained in:
parent
6c4fdf604b
commit
a0bca2d4cf
@ -320,7 +320,7 @@ impl HttpResponseBuilder {
|
|||||||
///
|
///
|
||||||
/// By default `ContentEncoding::Auto` is used, which automatically
|
/// By default `ContentEncoding::Auto` is used, which automatically
|
||||||
/// negotiates content encoding based on request's `Accept-Encoding` headers.
|
/// 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 {
|
pub fn content_encoding(&mut self, enc: ContentEncoding) -> &mut Self {
|
||||||
if let Some(parts) = parts(&mut self.parts, &self.err) {
|
if let Some(parts) = parts(&mut self.parts, &self.err) {
|
||||||
parts.encoding = enc;
|
parts.encoding = enc;
|
||||||
|
Loading…
Reference in New Issue
Block a user