Skip to content

Commit

Permalink
Fix json response text
Browse files Browse the repository at this point in the history
  • Loading branch information
hyper-prog committed Feb 19, 2021
1 parent 71f94f8 commit 2e15381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restgomail.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ func handleHTTPMailReq(w http.ResponseWriter, r *http.Request) {
status = processRequest(&body, r.RemoteAddr)
}

message := "{status: \"Received\"}"
message := "{\"status\": \"Received\"}"
if status {
message = "{status: \"Failed\"}"
message = "{\"status\": \"Failed\"}"
}

w.Header().Set("Content-Type", "application/json")
Expand Down

0 comments on commit 2e15381

Please sign in to comment.