We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12e1fd9 + 6183335 commit db9c80fCopy full SHA for db9c80f
flash.go
@@ -12,6 +12,7 @@ import (
12
// E.g. the Post/Redirect/Get pattern:
13
// http://en.wikipedia.org/wiki/Post/Redirect/Get
14
type Flash struct {
15
+ // `Data` is the input which is read in `restoreFlash`, `Out` is the output which is set in a FLASH cookie at the end of the `FlashFilter()`
16
Data, Out map[string]string
17
}
18
server.go
@@ -94,8 +94,10 @@ func Run(port int) {
94
95
96
Server = &http.Server{
97
- Addr: localAddress,
98
- Handler: http.HandlerFunc(handle),
+ Addr: localAddress,
+ Handler: http.HandlerFunc(handle),
99
+ ReadTimeout: time.Minute,
100
+ WriteTimeout: time.Minute,
101
102
103
runStartupHooks()
0 commit comments