Skip to content
Browse files

Merge pull request #3 from PiotrSikora/status

Use constant from "http" package instead of hardcoded error code.
  • Loading branch information...
2 parents 02b4f28 + 4e8d3ab commit 1610680eca2709cb571c71d17ca53064028c46cd @igrigorik committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 turk/turk.go
View
2 turk/turk.go
@@ -20,7 +20,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
}
resp, _ := json.Marshal(reply)
- w.WriteHeader(500)
+ w.WriteHeader(http.StatusInternalServerError)
w.Write(resp)
}

0 comments on commit 1610680

Please sign in to comment.
Something went wrong with that request. Please try again.