File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ authors = [
18
18
19
19
[dependencies ]
20
20
async-std = { version = " 1.5.0" , features = [" unstable" ] }
21
- http-types = " 1 .0.1 "
21
+ http-types = " 2 .0.0 "
22
22
log = " 0.4.8"
23
23
memchr = " 2.3.3"
24
24
pin-project-lite = " 0.1.4"
Original file line number Diff line number Diff line change 1
1
/// 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 > ) {
3
3
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" ) ;
7
6
}
You can’t perform that action at this time.
0 commit comments