Make auth safe params a frozenset (#125640)

This commit is contained in:
J. Nick Koston 2024-09-10 01:37:50 -05:00 committed by GitHub
parent bd5892f2a6
commit bb56610093
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ _LOGGER = logging.getLogger(__name__)
DATA_API_PASSWORD: Final = "api_password"
DATA_SIGN_SECRET: Final = "http.auth.sign_secret"
SIGN_QUERY_PARAM: Final = "authSig"
SAFE_QUERY_PARAMS: Final = ["height", "width"]
SAFE_QUERY_PARAMS: Final = frozenset(("height", "width"))
STORAGE_VERSION = 1
STORAGE_KEY = "http.auth"