Browse Source

oops

pull/7/head
Pēteris Caune 9 years ago
parent
commit
dd792486a7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/api/views.py

+ 1
- 1
hc/api/views.py View File

@ -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…
Cancel
Save