Explorar o código

Merge pull request #1629 from mattrobenolt/patch-1

Fix format of Cache-Control header
Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
d758729633
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg/api/dashboard_snapshot.go

+ 1 - 1
pkg/api/dashboard_snapshot.go

@@ -35,6 +35,6 @@ func GetDashboardSnapshot(c *middleware.Context) {
 		Meta:  dtos.DashboardMeta{IsSnapshot: true},
 	}
 
-	c.Resp.Header().Set("Cache-Control", "public max-age: 31536000")
+	c.Resp.Header().Set("Cache-Control", "public, max-age=31536000")
 	c.JSON(200, dto)
 }