From 7894fd279dcdc24f56067cb2f79019bce67ac103 Mon Sep 17 00:00:00 2001 From: Prashant Shubham Date: Tue, 1 Oct 2024 18:20:36 +0530 Subject: [PATCH] Error response fix (#12) --- internal/server/httpServer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/httpServer.go b/internal/server/httpServer.go index fbe37a7..68e4c86 100644 --- a/internal/server/httpServer.go +++ b/internal/server/httpServer.go @@ -37,7 +37,7 @@ type HTTPErrorResponse struct { } func errorResponse(response string) string { - return fmt.Sprintf("{\"error\": \"%q\"}", response) + return fmt.Sprintf("{\"error\": %q}", response) } func (cim *HandlerMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {