File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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"
3232httpdate = " 1.0"
3333httparse = " 1.5.1"
3434h2 = { version = " 0.3.9" , optional = true }
35- itoa = " 0.4. 1"
35+ itoa = " 1"
3636tracing = { version = " 0.1" , default-features = false , features = [" std" ] }
3737pin-project-lite = " 0.2.4"
3838tower-service = " 0.3"
Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ impl Server {
581581 #[ inline]
582582 fn encode_headers < W > (
583583 msg : Encode < ' _ , StatusCode > ,
584- mut dst : & mut Vec < u8 > ,
584+ dst : & mut Vec < u8 > ,
585585 mut is_last : bool ,
586586 orig_len : usize ,
587587 mut wrote_len : bool ,
@@ -838,7 +838,7 @@ impl Server {
838838 "content-length: " ,
839839 header:: CONTENT_LENGTH ,
840840 ) ;
841- let _ = :: itoa:: write ( & mut dst , len) ;
841+ extend ( dst , :: itoa:: Buffer :: new ( ) . format ( len) . as_bytes ( ) ) ;
842842 extend ( dst, b"\r \n " ) ;
843843 Encoder :: length ( len)
844844 }
You can’t perform that action at this time.
0 commit comments