Add Cache-Control header
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user