forked from GithubBackups/healthchecks
oops
This commit is contained in:
parent
3550218129
commit
dd792486a7
@ -23,7 +23,7 @@ def ping(request, code):
|
|||||||
|
|
||||||
ping = Ping(owner=check)
|
ping = Ping(owner=check)
|
||||||
headers = request.META
|
headers = request.META
|
||||||
ping.remote_addr = headers.get("X_REAL_IP", headers["REMOTE_ADDR"])
|
ping.remote_addr = headers.get("HTTP_X_REAL_IP", headers["REMOTE_ADDR"])
|
||||||
ping.method = headers["REQUEST_METHOD"]
|
ping.method = headers["REQUEST_METHOD"]
|
||||||
ping.ua = headers.get("HTTP_USER_AGENT", "")
|
ping.ua = headers.get("HTTP_USER_AGENT", "")
|
||||||
ping.body = request.body
|
ping.body = request.body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user