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:
parent
e6c89f6c6c
commit
8905486e3e
@ -13,4 +13,4 @@ def all(request):
|
||||
for host in queryset:
|
||||
# pass last_seen to json in unixtime
|
||||
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user