Skip to content

Commit

Permalink
chore: change type response
Browse files Browse the repository at this point in the history
  • Loading branch information
thuchoskym committed Aug 13, 2024
1 parent 9a89e53 commit d5c31a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async fn cast_command_handler(path: web::Path<(u64, String, u64)>) -> impl Respo
};

match run_cast_command(chain, tx, quick).await {
Ok(output) => HttpResponse::Ok().content_type("text/plain").body(output),
Ok(output) => HttpResponse::Ok().content_type("text/html").body(output),
Err(e) => {
println!("Error response: {}", e);
HttpResponse::InternalServerError().body(format!("Error executing command: {}", e))
Expand Down

0 comments on commit d5c31a1

Please sign in to comment.