Skip to content
代码片段 群组 项目
提交 7bd88aeb 编辑于 作者: Nick Thomas's avatar Nick Thomas
浏览文件

Restore go1.5 compatibility

上级 1ce06acc
No related branches found
No related tags found
无相关合并请求
......@@ -28,7 +28,7 @@ func ServiceUnavailable(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)
printError(r, err)
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册