File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ http-body = "0.4"
32
32
httpdate = " 1.0"
33
33
httparse = " 1.5.1"
34
34
h2 = { version = " 0.3.9" , optional = true }
35
- itoa = " 0.4. 1"
35
+ itoa = " 1"
36
36
tracing = { version = " 0.1" , default-features = false , features = [" std" ] }
37
37
pin-project-lite = " 0.2.4"
38
38
tower-service = " 0.3"
Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ impl Server {
581
581
#[ inline]
582
582
fn encode_headers < W > (
583
583
msg : Encode < ' _ , StatusCode > ,
584
- mut dst : & mut Vec < u8 > ,
584
+ dst : & mut Vec < u8 > ,
585
585
mut is_last : bool ,
586
586
orig_len : usize ,
587
587
mut wrote_len : bool ,
@@ -838,7 +838,7 @@ impl Server {
838
838
"content-length: " ,
839
839
header:: CONTENT_LENGTH ,
840
840
) ;
841
- let _ = :: itoa:: write ( & mut dst , len) ;
841
+ extend ( dst , :: itoa:: Buffer :: new ( ) . format ( len) . as_bytes ( ) ) ;
842
842
extend ( dst, b"\r \n " ) ;
843
843
Encoder :: length ( len)
844
844
}
You can’t perform that action at this time.
0 commit comments