提交 f0aafb1a 编写于 作者: Y YuXiaoFeng 提交者: zhang-wei

http plugin lost status code (#38)

when http server response non 200 code, the plugin always return 200.
上级 72af07ea
......@@ -122,6 +122,7 @@ func (rww *responseWriterWrapper) Write(bytes []byte) (int, error) {
func (rww *responseWriterWrapper) WriteHeader(statusCode int) {
rww.statusCode = statusCode
rww.w.WriteHeader(statusCode)
}
func getOperationName(name string, r *http.Request) string {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册