Skip to content

Commit 56fb5f6

Browse files
committed
Merge pull request hoisie#65 from gtalent/master
Updated some function descriptions
2 parents f128494 + e775851 commit 56fb5f6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

web.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func getCookieSig(key string, val []byte, timestamp string) string {
115115
func (ctx *Context) SetSecureCookie(name string, val string, age int64) {
116116
//base64 encode the val
117117
if len(ctx.Server.Config.CookieSecret) == 0 {
118-
ctx.Logger.Println("Secret Key for secure cookies has not been set. Please call web.SetCookieSecret")
118+
ctx.Logger.Println("Secret Key for secure cookies has not been set. Please assign a cookie secret to web.Config.CookieSecret.")
119119
return
120120
}
121121
var buf bytes.Buffer
@@ -439,6 +439,7 @@ func (s *Server) initServer() {
439439
}
440440
}
441441

442+
//Runs the web application and serves http requests
442443
func (s *Server) Run(addr string) {
443444
s.initServer()
444445

@@ -461,7 +462,7 @@ func (s *Server) Run(addr string) {
461462
s.l.Close()
462463
}
463464

464-
//runs the web application and serves http requests
465+
//Runs the web application and serves http requests
465466
func Run(addr string) {
466467
mainServer.Run(addr)
467468
}
@@ -472,7 +473,7 @@ func (s *Server) Close() {
472473
s.closed = true
473474
}
474475

475-
//runs the web application and serves http requests
476+
//Stops the web server
476477
func Close() {
477478
mainServer.Close()
478479
}
@@ -483,18 +484,19 @@ func (s *Server) RunScgi(addr string) {
483484
s.listenAndServeScgi(addr)
484485
}
485486

486-
//runs the web application and serves scgi requests
487+
//Runs the web application and serves scgi requests
487488
func RunScgi(addr string) {
488489
mainServer.RunScgi(addr)
489490
}
490491

492+
//Runs the web application and serves scgi requests for this Server object.
491493
func (s *Server) RunFcgi(addr string) {
492494
s.initServer()
493495
s.Logger.Printf("web.go serving fcgi %s\n", addr)
494496
s.listenAndServeFcgi(addr)
495497
}
496498

497-
//runs the web application by serving fastcgi requests
499+
//Runs the web application by serving fastcgi requests
498500
func RunFcgi(addr string) {
499501
mainServer.RunFcgi(addr)
500502
}

0 commit comments

Comments
 (0)