File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 99 - rust : beta
1010 - rust : nightly
1111 # minimum rustc version
12- - rust : 1.39 .0
12+ - rust : 1.41 .0
1313 script : cargo build
1414
1515script :
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ base64 = "0.13"
2323bitflags = " 1.0"
2424bytes = " 1"
2525mime = " 0.3.14"
26- sha-1 = " 0.8 "
26+ sha-1 = " 0.9 "
2727time = " 0.1.34"
2828
2929[features ]
Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ impl From<SecWebsocketKey> for SecWebsocketAccept {
3737
3838fn sign ( key : & [ u8 ] ) -> SecWebsocketAccept {
3939 let mut sha1 = Sha1 :: default ( ) ;
40- sha1. input ( key) ;
41- sha1. input ( & b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11" [ ..] ) ;
42- let b64 = Bytes :: from ( base64:: encode ( & sha1. result ( ) ) ) ;
40+ sha1. update ( key) ;
41+ sha1. update ( & b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11" [ ..] ) ;
42+ let b64 = Bytes :: from ( base64:: encode ( & sha1. finalize ( ) ) ) ;
4343
4444 let val = :: HeaderValue :: from_maybe_shared ( b64) . expect ( "base64 is a valid value" ) ;
4545
You can’t perform that action at this time.
0 commit comments