From dd792486a7ea2734d1c7fce139c0799bb2642b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 27 Jul 2015 20:01:24 +0300 Subject: [PATCH] oops --- hc/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hc/api/views.py b/hc/api/views.py index b73936a6..811ab6a0 100644 --- a/hc/api/views.py +++ b/hc/api/views.py @@ -23,7 +23,7 @@ def ping(request, code): ping = Ping(owner=check) 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.ua = headers.get("HTTP_USER_AGENT", "") ping.body = request.body