mirror of
https://github.com/telemt/telemt.git
synced 2026-11-03 14:22:06 +03:00
X-Telemt-Retry-After-Ms added
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user