Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Mar 19, 2024
1 parent 7a698cf commit 50943de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from functools import wraps
from typing import Dict, Union
from typing import Dict, Union, cast

import sentry_sdk
from django.conf import settings
Expand Down Expand Up @@ -125,7 +125,7 @@ def preflight_check(request: HttpRequest) -> JsonResponse:
"object_storage": is_cloud() or is_object_storage_available(),
"request": {
# Helpful for debugging what remote address we have detected
"ident": BaseThrottle().get_ident(Request(request)),
"ident": BaseThrottle().get_ident(cast(Request, request)),
"ip": get_ip_address(request),
},
}
Expand Down

0 comments on commit 50943de

Please sign in to comment.