Commit 7bd88aeb authored by Nick Thomas's avatar Nick Thomas

Restore go1.5 compatibility

parent 1ce06acc
...@@ -28,7 +28,7 @@ func ServiceUnavailable(w http.ResponseWriter, r *http.Request, err error) { ...@@ -28,7 +28,7 @@ func ServiceUnavailable(w http.ResponseWriter, r *http.Request, err error) {
} }
func TooManyRequests(w http.ResponseWriter, r *http.Request, err error) { func TooManyRequests(w http.ResponseWriter, r *http.Request, err error) {
http.Error(w, "Too Many Requests", http.StatusTooManyRequests) http.Error(w, "Too Many Requests", 429) // http.StatusTooManyRequests was added in go1.6
captureRavenError(r, err) captureRavenError(r, err)
printError(r, err) printError(r, err)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment