File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ authors = [
1717[features ]
1818
1919[dependencies ]
20- async-std = { version = " 1.5 .0" , features = [" unstable" ] }
21- http-types = " 1 .0.1"
20+ async-std = { version = " 1.6 .0" , features = [" unstable" ] }
21+ http-types = " 2 .0.1"
2222log = " 0.4.8"
2323memchr = " 2.3.3"
2424pin-project-lite = " 0.1.4"
2525
2626[dev-dependencies ]
27- femme = " 1.3 .0"
28- async-std = { version = " 1.5 .0" , features = [" attributes" , " unstable" ] }
27+ femme = " 2.0 .0"
28+ async-std = { version = " 1.6 .0" , features = [" attributes" , " unstable" ] }
Original file line number Diff line number Diff line change 11/// Upgrade an HTTP connection into an SSE session.
2- pub fn upgrade ( headers : & mut impl AsMut < http_types:: Headers > ) -> http_types :: Result < ( ) > {
2+ pub fn upgrade ( headers : & mut impl AsMut < http_types:: Headers > ) {
33 let headers = headers. as_mut ( ) ;
4- headers. insert ( "Cache-Control" , "no-cache" ) ?;
5- headers. insert ( "Content-Type" , "text/event-stream" ) ?;
6- Ok ( ( ) )
4+ headers. insert ( "Cache-Control" , "no-cache" ) ;
5+ headers. insert ( "Content-Type" , "text/event-stream" ) ;
76}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ async fn maintain_id_state() -> http_types::Result<()> {
5656/// https://github.com/web-platform-tests/wpt/blob/master/eventsource/event-data.html
5757#[ async_std:: test]
5858async fn event_data ( ) -> http_types:: Result < ( ) > {
59- femme:: start ( log:: LevelFilter :: Trace ) ? ;
59+ femme:: with_level ( log:: LevelFilter :: Trace ) ;
6060 let input = concat ! (
6161 "data:event\n " ,
6262 "data:event\n \n " ,
You can’t perform that action at this time.
0 commit comments