Browse Source

Removed superfluous fmt.Sprintf.

Matt Silverlock 12 years ago
parent
commit
179dc70da2
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      web/middleware/nocache.go

+ 1
- 2
web/middleware/nocache.go View File

@ -1,13 +1,12 @@
package middleware
import (
"fmt"
"net/http"
"time"
)
// Unix epoch time
var epoch = fmt.Sprintf("%s", time.Unix(0, 0).Format(time.RFC1123))
var epoch = time.Unix(0, 0).Format(time.RFC1123)
// Taken from https://github.com/mytrile/nocache
var noCacheHeaders = map[string]string{


Loading…
Cancel
Save