diff --git a/nsupdate/api/views.py b/nsupdate/api/views.py index b1ede8e..1a64cf6 100644 --- a/nsupdate/api/views.py +++ b/nsupdate/api/views.py @@ -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'): diff --git a/nsupdate/static/1px.gif b/nsupdate/static/1px.gif deleted file mode 100644 index d537729..0000000 Binary files a/nsupdate/static/1px.gif and /dev/null differ diff --git a/setup.py b/setup.py index 23a5710..5b16729 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,6 @@ setup( packages=find_packages(exclude=['_tests', ]), package_data={ 'nsupdate': [ - 'static/*.gif', 'static/*.html', 'static/css/*', 'static/screenshots/*',