Skip to content

Commit 6383550

Browse files
authored
admin: fix system API when using bearer token (#13651)
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
1 parent 10771b4 commit 6383550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authentik/admin/api/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_http_headers(self, request: Request) -> dict[str, str]:
5959
if not isinstance(value, str):
6060
continue
6161
actual_value = value
62-
if raw_session in actual_value:
62+
if raw_session is not None and raw_session in actual_value:
6363
actual_value = actual_value.replace(
6464
raw_session, SafeExceptionReporterFilter.cleansed_substitute
6565
)

0 commit comments

Comments
 (0)