Browse Source

Improve HTTPServer validation

Stan 18 giờ trước cách đây
mục cha
commit
faff5b4497
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      http_server.go

+ 1 - 1
http_server.go

@@ -183,7 +183,7 @@ func (this *HTTPServer) ServeHTTP(responseStream http.ResponseWriter, requestStr
 		}
 
 		if !validateData(handler) {
-			this.log.Error("malformed validation failed", LogValue("path", requestStream.URL.Path), LogError(err))
+			this.log.Error("validation failed", LogValue("path", requestStream.URL.Path))
 			responseStream.WriteHeader(http.StatusNotAcceptable)
 			return
 		}