@@ -81,7 +81,7 @@ impl Http1Transaction for Server {
81
81
let len;
82
82
let headers_len;
83
83
84
- // Unsafe: both headers_indices and headers are using unitialized memory,
84
+ // Unsafe: both headers_indices and headers are using uninitialized memory,
85
85
// but we *never* read any of it until after httparse has assigned
86
86
// values into it. By not zeroing out the stack memory, this saves
87
87
// a good ~5% on pipeline benchmarks.
@@ -165,7 +165,7 @@ impl Http1Transaction for Server {
165
165
// https://tools.ietf.org/html/rfc7230#section-3.3.3
166
166
// If Transfer-Encoding header is present, and 'chunked' is
167
167
// not the final encoding, and this is a Request, then it is
168
- // mal-formed . A server should respond with 400 Bad Request.
168
+ // malformed . A server should respond with 400 Bad Request.
169
169
if !is_http_11 {
170
170
debug ! ( "HTTP/1.0 cannot have Transfer-Encoding header" ) ;
171
171
return Err ( Parse :: Header ) ;
@@ -406,7 +406,7 @@ impl Http1Transaction for Server {
406
406
debug_assert ! ( is_name_written) ;
407
407
continue ' headers;
408
408
} else {
409
- // we haven't written content-lenght yet!
409
+ // we haven't written content-length yet!
410
410
encoder = Encoder :: length ( len) ;
411
411
extend ( dst, b"content-length: " ) ;
412
412
extend ( dst, value. as_bytes ( ) ) ;
@@ -792,7 +792,7 @@ impl Client {
792
792
// https://tools.ietf.org/html/rfc7230#section-3.3.3
793
793
// If Transfer-Encoding header is present, and 'chunked' is
794
794
// not the final encoding, and this is a Request, then it is
795
- // mal-formed . A server should respond with 400 Bad Request.
795
+ // malformed . A server should respond with 400 Bad Request.
796
796
if inc. version == Version :: HTTP_10 {
797
797
debug ! ( "HTTP/1.0 cannot have Transfer-Encoding header" ) ;
798
798
Err ( Parse :: Header )
0 commit comments