Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/caldwell/rocket_session/commit/a3fbb8ae6736632f904da487a6cbfe71820d2cdf?style=split&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
3 additions and
3 deletions
src/lib.rs
@ -126,7 +126,7 @@ where
{
{
type Error = ( ) ;
type Error = ( ) ;
async fn from_request ( request : & ' r Request < ' _ > ) -> Outcome < Self , ( Status , Self ::Error ) , ( ) > {
async fn from_request ( request : & ' r Request < ' _ > ) -> Outcome < Self , ( Status , Self ::Error ) , Status > {
let store = request . guard ::< & State < SessionStore < D > > > ( ) . await . unwrap ( ) ;
let store = request . guard ::< & State < SessionStore < D > > > ( ) . await . unwrap ( ) ;
Outcome ::Success ( Session {
Outcome ::Success ( Session {
id : request . local_cache ( | | {
id : request . local_cache ( | | {
@ -321,9 +321,9 @@ where
if ! session . 0. is_empty ( ) {
if ! session . 0. is_empty ( ) {
response . adjoin_header (
response . adjoin_header (
Cookie ::build ( self . config . cookie_name . clone ( ) , session . to_string ( ) )
Cookie ::build ( ( self . config . cookie_name . clone ( ) , session . to_string ( ) ) )
. path ( "/" )
. path ( "/" )
. finish ( ) ,
. build ( ) ,
) ;
) ;
}
}
}
}