File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ include = [
2121bytes = " 0.4.4"
2222futures = " 0.1.21"
2323futures-cpupool = { version = " 0.1.6" , optional = true }
24- http = " 0.1.7 "
24+ http = " 0.1.13 "
2525httparse = " 1.0"
2626h2 = " 0.1.10"
2727iovec = " 0.1"
Original file line number Diff line number Diff line change @@ -1405,6 +1405,19 @@ mod tests {
14051405 assert ! ( encoder. is_last( ) ) ;
14061406 }
14071407
1408+ #[ test]
1409+ fn parse_header_htabs ( ) {
1410+ let mut bytes = BytesMut :: from ( "HTTP/1.1 200 OK\r \n server: hello\t world\r \n \r \n " ) ;
1411+ let parsed = Client :: parse ( & mut bytes, ParseContext {
1412+ cached_headers : & mut None ,
1413+ req_method : & mut Some ( Method :: GET ) ,
1414+ } )
1415+ . expect ( "parse ok" )
1416+ . expect ( "parse complete" ) ;
1417+
1418+ assert_eq ! ( parsed. head. headers[ "server" ] , "hello\t world" ) ;
1419+ }
1420+
14081421 #[ cfg( feature = "nightly" ) ]
14091422 use test:: Bencher ;
14101423
You can’t perform that action at this time.
0 commit comments