Browse Source

Don't fill in body, will be removing it from model.

pull/20/head
Pēteris Caune 9 years ago
parent
commit
33ad56728c
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      hc/api/views.py

+ 0
- 2
hc/api/views.py View File

@ -29,7 +29,6 @@ def ping(request, code):
ping.method = headers["REQUEST_METHOD"] ping.method = headers["REQUEST_METHOD"]
# If User-Agent is longer than 200 characters, truncate it: # If User-Agent is longer than 200 characters, truncate it:
ping.ua = headers.get("HTTP_USER_AGENT", "")[:200] ping.ua = headers.get("HTTP_USER_AGENT", "")[:200]
ping.body = request.body
ping.save() ping.save()
response = HttpResponse("OK") response = HttpResponse("OK")
@ -61,7 +60,6 @@ def handle_email(request):
ping = Ping(owner=check) ping = Ping(owner=check)
ping.scheme = "email" ping.scheme = "email"
ping.body = event["msg"]["raw_msg"]
ping.save() ping.save()
response = HttpResponse("OK") response = HttpResponse("OK")


Loading…
Cancel
Save