Skip to content

Commit

Permalink
fixe(): adding a lang check
Browse files Browse the repository at this point in the history
  • Loading branch information
ndefokou committed Nov 25, 2024
1 parent 923f8d0 commit e3a48c5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::sync::Arc;

use crate::model::BasicMessage;

// https://didcomm.org/basicmessage/2.0/
pub fn handle_basic_message(_state: Arc<AppState>, message: BasicMessage) -> Response {
if message.lang.is_none() {
return (StatusCode::BAD_REQUEST, "Language is required").into_response();
Expand Down

0 comments on commit e3a48c5

Please sign in to comment.