cleanup: remove int(...) casts on HTTPStatus usage

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-16 17:33:33 -07:00
parent 56eefabc6d
commit 6ddf888b67
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
7 changed files with 66 additions and 66 deletions

View file

@ -56,7 +56,7 @@ async def language(request: Request,
# In any case, set the response's AURLANG cookie that never expires.
response = RedirectResponse(url=f"{next}{query_string}",
status_code=int(HTTPStatus.SEE_OTHER))
status_code=HTTPStatus.SEE_OTHER)
secure_cookies = aurweb.config.getboolean("options", "disable_http_login")
response.set_cookie("AURLANG", set_lang,
secure=secure_cookies, httponly=True)