v0.32.6_fix2
This commit is contained in:
1 parent
e1ac899ec0
commit
fc8711d4d8
39 files changed
+695
-232
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user