Skip to content

Commit

Permalink
Do not save session on client error
Browse files Browse the repository at this point in the history
  • Loading branch information
0rzech committed Oct 24, 2024
1 parent 66983f5 commit 1d4adb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ where

_ if (modified || session_config.always_save)
&& !empty
&& !res.status().is_client_error()
&& !res.status().is_server_error() =>
{
tracing::debug!("saving session");
Expand Down

0 comments on commit 1d4adb9

Please sign in to comment.