Add Cache-Control header

This commit is contained in:
2021-05-16 19:25:37 +02:00
parent 9e7832c152
commit 338e1c060e

View File

@ -96,6 +96,8 @@ fn endpoint_handler(
) {
let mut buf = [0; 8192];
res.add_header("Cache-Control", "no-store");
let mut error = |code: u16, err_str: &str, client: &mut super::HttpStream| {
println!("{}", err_str);
res.status(code);