1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Remove old proxy backwards compatibility

This commit is contained in:
Ada 2024-04-05 22:08:22 +02:00
parent b210a3ebd5
commit d2ff8f8720
No known key found for this signature in database
GPG key ID: 6A7F898157C6DE6E

View file

@ -85,7 +85,7 @@ func Check(w http.ResponseWriter, r *http.Request) {
data, _ := json.MarshalIndent(rsp, "", " ")
w.Header().Set("Content-Type", "application/json")
w.Header().Set("Cache-Control", "no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate")
w.Header().Set("Cache-Control", "no-store")
w.WriteHeader(rsp.Status.ToHTTPStatus())
_, _ = w.Write(data)
}