diff options
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -139,7 +139,7 @@ func (srv *Server) HandleConn(conn net.Conn) { req.Body = io.LimitReader(req.Body, req.Length()) if srv.Validate { - if err != nil { + if err := req.Validate(); err != nil { panic(err) } } |