From 53be85acbe16ffaeee8da5e1284eeb72a75ed58e Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sat, 29 Jul 2023 20:14:49 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Content-Type=E3=81=ABapplication/sql?= =?UTF-8?q?=E3=82=92=E8=A8=AD=E5=AE=9A=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main.rs b/server/src/main.rs index c909182..a790064 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -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(