1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-05 11:17:03 +00:00

some major improvements to the (server-side) cache middleware and an example of a client-side responsibility cache

Former-commit-id: 93d3a7a6f163c6d49f315f86d10e63f7b1b1d93a
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-25 15:09:24 +02:00
parent 981322cfd2
commit befb1f0c08
7 changed files with 90 additions and 151 deletions

View File

@@ -823,7 +823,7 @@ func serveFile(ctx context.Context, fs http.FileSystem, name string, redirect bo
// and the binary data inside "f".
detectOrWriteContentType(ctx, d.Name(), f)
return "", 200
return "", http.StatusOK
}
// toHTTPError returns a non-specific HTTP error message and status code