Create 204 response in detect ip view
This commit is contained in:
parent
570dc4f94a
commit
09e31209f1
@ -52,9 +52,7 @@ def DetectIpView(request, secret=None):
|
||||
key = check_ip(ipaddr)
|
||||
s[key] = ipaddr
|
||||
s.save()
|
||||
with open(os.path.join(settings.STATIC_ROOT, "1px.gif"), "rb") as f:
|
||||
image_data = f.read()
|
||||
return HttpResponse(image_data, mimetype="image/png")
|
||||
return HttpResponse(status=204)
|
||||
|
||||
|
||||
def basic_challenge(realm, content='Authorization Required'):
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Loading…
x
Reference in New Issue
Block a user