mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-20 14:41:27 +08:00
gofmt -s; fix misspellings and lint; Go 1.5.3 in Travis CI
This commit is contained in:
@ -102,7 +102,8 @@ func SetLastModifiedHeader(w http.ResponseWriter, modTime time.Time) {
|
||||
w.Header().Set("Last-Modified", modTime.UTC().Format(http.TimeFormat))
|
||||
}
|
||||
|
||||
// currentTime returns time.Now() everytime it's called. It's used for mocking in tests.
|
||||
// currentTime, as it is defined here, returns time.Now().
|
||||
// It's defined as a variable for mocking time in tests.
|
||||
var currentTime = func() time.Time {
|
||||
return time.Now()
|
||||
}
|
||||
|
Reference in New Issue
Block a user