v0.32.6_fix2

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-14 11:51:37 +02:00
1 parent e1ac899ec0
commit fc8711d4d8
39 files changed
+695 -232

No files matched your search

+2 -2
View File
@@ -309,8 +309,8 @@ async fn events(
headers: HeaderMap,
Query(query): Query<EventsQuery>,
) -> Result<Response, ApiError> {
let interval = query.interval.unwrap_or(2);
if ![1, 2, 5, 10].contains(&interval) {
let interval = query.interval.unwrap_or(3);
if ![1, 2, 3, 5, 10].contains(&interval) {
return Err(ApiError(StatusCode::UNPROCESSABLE_ENTITY, "invalid SSE interval".into()));
}
let secret = auth::cookie_secret(&headers)