From 0bf6dae5cf9deb574bd9373e27cb93cad5e57ae9 Mon Sep 17 00:00:00 2001 From: Ioannis Dressos <96877388+idressos@users.noreply.github.com> Date: Sun, 29 Oct 2023 15:49:29 +0200 Subject: [PATCH] Correct mimetype for client configuration file downloads --- handler/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/routes.go b/handler/routes.go index b57da03..6b430ff 100644 --- a/handler/routes.go +++ b/handler/routes.go @@ -699,7 +699,7 @@ func DownloadClient(db store.IStore) echo.HandlerFunc { // set response header for downloading c.Response().Header().Set(echo.HeaderContentDisposition, fmt.Sprintf("attachment; filename=%s.conf", clientData.Client.Name)) - return c.Stream(http.StatusOK, "text/plain", reader) + return c.Stream(http.StatusOK, "text/conf", reader) } }