Skip to content

Commit

Permalink
Error response fix (DiceDB#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifercr07 authored Oct 1, 2024
1 parent e3cb178 commit 7894fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/httpServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7894fd2

Please sign in to comment.