Skip to content

Commit

Permalink
feat: Content-Typeにapplication/sqlを設定する
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Jul 29, 2023
1 parent 5c0be3a commit 53be85a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ mod presentation {
Ok(gachadata_dump) if !gachadata_dump.dump.0.is_empty() => Ok(Response::builder()
.status(StatusCode::OK)
.header("Content-Disposition", "attachment; filename=gachadata.sql")
.header("Content-Type", "application/sql")
.body(gachadata_dump.dump.0.to_owned().into_response())
.unwrap()),
Ok(_) => Err(ErrorResponse::from(
Expand Down

0 comments on commit 53be85a

Please sign in to comment.