From af6ccf135b3ffc7bfd2e47ac16530345d4b16da1 Mon Sep 17 00:00:00 2001 From: Robert Thomas <31854736+wolveix@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:58:56 +0100 Subject: [PATCH] Cleanup Scalar API docs --- cmd/dss/main.go | 2 +- pkg/http/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dss/main.go b/cmd/dss/main.go index d0f6905..ba4779d 100644 --- a/cmd/dss/main.go +++ b/cmd/dss/main.go @@ -26,7 +26,7 @@ var ( Use: "dss", Short: "Scan a domain's DNS records.", Long: "Scan a domain's DNS records.\nhttps://github.com/GlobalCyberAlliance/domain-security-scanner", - Version: "3.0.8", + Version: "3.0.9", PersistentPreRun: func(cmd *cobra.Command, args []string) { var logWriter io.Writer diff --git a/pkg/http/server.go b/pkg/http/server.go index 3b5fe31..e97f8c2 100644 --- a/pkg/http/server.go +++ b/pkg/http/server.go @@ -87,7 +87,7 @@ func NewServer(logger zerolog.Logger, version string) *Server { Path: server.apiPath + "/docs", }, func(ctx huma.Context) { ctx.SetHeader("Content-Type", "text/html") - if _, err := ctx.BodyWriter().Write([]byte(`