summaryrefslogtreecommitdiffstats
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.go b/server.go
index 4320f41..6d23ddd 100644
--- a/server.go
+++ b/server.go
@@ -35,14 +35,14 @@ type Server struct {
Handler Handler
// Validate enables request parameter value validation; invalid requests
- // are responded with errors.
+ // are responded to with errors.
Validate bool
sock net.Conn
}
-// NewServer creates a new Server with default access and errors logs and sets
-// the listen address to "localhost".
+// NewServer creates a new Server with default access and errors loggers,
+// validation enabled and the listen address set to "localhost".
func NewServer() *Server {
return &Server{
AccessLogger: log.New(os.Stdout, "", 0),