diff --git a/qrApi/main.go b/qrApi/main.go index dd3a5f1..4970be0 100644 --- a/qrApi/main.go +++ b/qrApi/main.go @@ -102,6 +102,7 @@ func InitQRApi(app *pocketbase.PocketBase, e *core.ServeEvent) error { } // return qr code as svg + c.Response().Header().Set("Content-disposition", "attachment; filename=QR.svg") return c.Stream(200, "image/svg+xml", io.Reader(&buffer)) }, apis.ActivityLogger(app))