mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
fix: harden frontdoor and usage ingestion
This commit is contained in:
@@ -157,10 +157,5 @@ fn decode_response_bytes(bytes: &[u8], content_encoding: Option<&str>) -> Option
|
||||
}
|
||||
|
||||
fn gateway_error_to_oauth_error(error: GatewayError) -> OAuthError {
|
||||
match error {
|
||||
GatewayError::UpstreamUnavailable { message, .. }
|
||||
| GatewayError::ControlUnavailable { message, .. }
|
||||
| GatewayError::Client { message, .. }
|
||||
| GatewayError::Internal(message) => OAuthError::Transport(message),
|
||||
}
|
||||
OAuthError::Transport(error.into_message())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user