mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2025-03-04 00:33:58 +00:00
actually fix python 3.10 compat
This commit is contained in:
parent
87e45553ca
commit
ac0cddd65a
3 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ dependencies = [
|
|||
"aiohttp >= 3.9.5",
|
||||
"argon2-cffi == 23.1.0",
|
||||
"barkshark-lib >= 0.2.3, < 0.3.0",
|
||||
"barkshark-sql >= 0.2.0, < 0.3.0",
|
||||
"barkshark-sql >= 0.2.5, < 0.3.0",
|
||||
"click == 8.1.2",
|
||||
"docstring-parser == 0.16",
|
||||
"hamlish == 0.4.0",
|
||||
|
|
|
@ -48,7 +48,7 @@ def get_csp(request: web.Request) -> str:
|
|||
"img-src 'self'",
|
||||
"object-src 'none'",
|
||||
"frame-ancestors 'none'",
|
||||
f"manifest-src 'self' https://{request.app["config"].domain}"
|
||||
f"manifest-src 'self' https://{request.app['config'].domain}"
|
||||
]
|
||||
|
||||
return "; ".join(data) + ";"
|
||||
|
|
|
@ -20,7 +20,7 @@ if TYPE_CHECKING:
|
|||
T = TypeVar("T", bound = JsonBase[Any])
|
||||
|
||||
HEADERS = {
|
||||
"Accept": f"{MIMETYPES["activity"]}, {MIMETYPES["json"]};q=0.9",
|
||||
"Accept": f"{MIMETYPES['activity']}, {MIMETYPES['json']};q=0.9",
|
||||
"User-Agent": f"ActivityRelay/{__version__}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue