1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-29 08:09:18 +02:00

export symbols

This commit is contained in:
Nikolay Kim
2018-03-09 13:03:15 -08:00
parent 02dd5375a9
commit caaace82e3
4 changed files with 9 additions and 9 deletions

View File

@@ -63,8 +63,8 @@ mod context;
mod mask;
mod client;
use self::frame::Frame;
use self::proto::{hash_key, OpCode};
pub use self::frame::Frame;
pub use self::proto::OpCode;
pub use self::proto::CloseCode;
pub use self::context::WebsocketContext;
pub use self::client::{Client, ClientError,
@@ -248,7 +248,7 @@ pub fn handshake<S>(req: &HttpRequest<S>) -> Result<HttpResponseBuilder, Handsha
}
let key = {
let key = req.headers().get(header::SEC_WEBSOCKET_KEY).unwrap();
hash_key(key.as_ref())
proto::hash_key(key.as_ref())
};
Ok(HttpResponse::build(StatusCode::SWITCHING_PROTOCOLS)