mirror of
https://github.com/actix/actix-web.git
synced 2025-01-03 13:58:44 +00:00
fix typo
This commit is contained in:
parent
6c4fdf604b
commit
a0bca2d4cf
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue