summary refs log tree commit diff stats
path: root/svc/handlers.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-11 18:13:30 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-11 18:14:07 -0400
commit6dad1372a4680f2314a057b831f8cb2ef44dcf1b (patch)
treed95c10c760045c27714bc0b387f06ca8d2771eae /svc/handlers.go
parentd4af885c40ba55ea0ed9adade98afe0658099c47 (diff)
downloadgetwtxt-6dad1372a4680f2314a057b831f8cb2ef44dcf1b.tar.gz
check if behind reverse proxy
Diffstat (limited to 'svc/handlers.go')
-rw-r--r--svc/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc/handlers.go b/svc/handlers.go
index d3b8d8a..73ef869 100644
--- a/svc/handlers.go
+++ b/svc/handlers.go
@@ -21,7 +21,7 @@ func sendStaticEtag(w http.ResponseWriter, isCSS bool) {
 	if isCSS {
 		etag := getEtag(staticCache.cssMod)
 		w.Header().Set("ETag", "\""+etag+"\"")
-		w.Header().Set("Content-Time", txtutf8)
+		w.Header().Set("Content-Time", cssutf8)
 		return
 	}
 	etag := getEtag(staticCache.indexMod)