Skip to content

Commit

Permalink
set header Cache-Server on get
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <avelinorun@gmail.com>
  • Loading branch information
avelino committed Dec 23, 2021
1 parent a06ec40 commit f192a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cache/buntdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func BuntGet(key string, w http.ResponseWriter) (cacheExist bool) {
val, err := tx.Get(key)
if err == nil {
cacheExist = true
w.Header().Set("Cache-Server", "prestd")
w.WriteHeader(http.StatusOK)
w.Write([]byte(val))
}
Expand Down

0 comments on commit f192a3f

Please sign in to comment.