summaryrefslogtreecommitdiffstats
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index 26301ab..c8491fc 100644
--- a/server.go
+++ b/server.go
@@ -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)
}
}