1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-02-02 01:44:40 +00:00

Pass correct argument name to HttpResponse

Fixes compatibility with django 1.8.
This commit is contained in:
Hidden Z 2015-11-16 18:19:14 +00:00
parent e6c89f6c6c
commit 8905486e3e

View File

@ -13,4 +13,4 @@ def all(request):
for host in queryset: for host in queryset:
# pass last_seen to json in unixtime # pass last_seen to json in unixtime
json_dict[get_b32(host.b64hash)] = host.last_seen.strftime("%s") json_dict[get_b32(host.b64hash)] = host.last_seen.strftime("%s")
return HttpResponse(json.dumps(json_dict), mimetype="application/json") return HttpResponse(json.dumps(json_dict), content_type="application/json")