summaryrefslogtreecommitdiffstats
path: root/server.go
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2017-08-25 17:04:42 +0200
committerclsr <clsr@clsr.net>2017-08-25 17:04:44 +0200
commit9ca364d8753a5f2c7529c5b3dd7178bfd51effc6 (patch)
treedc5ab072ffbbd37da910d440e05b5bc56dc3f6da /server.go
parentba217ddeef9c6cd502a6f150bf59cf3ce329cc61 (diff)
downloadcnp-go-9ca364d8753a5f2c7529c5b3dd7178bfd51effc6.tar.gz
cnp-go-9ca364d8753a5f2c7529c5b3dd7178bfd51effc6.zip
Add support for the draft/cnp-select "select" request/response parameterv0.1.2
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),