X-Telemt-Retry-After-Ms added

This commit is contained in:
Alexey
2026-10-31 13:22:59 +03:00
parent b144075b73
commit ed2139502f
20 changed files with 81 additions and 32 deletions
+5
View File
@@ -46,6 +46,11 @@ pub(super) fn service_unavailable() -> HttpResponse {
response
.headers_mut()
.insert(header::RETRY_AFTER, HeaderValue::from_static("1"));
// Keep whole-second HTTP guidance for clients without the Telemt extension.
response.headers_mut().insert(
HeaderName::from_static("x-telemt-retry-after-ms"),
HeaderValue::from_static("250"),
);
response
}