Commit 3fd9cafc by Őry Máté

firewall: fix require_POST decoratior

parent d6ad4d7a
...@@ -4,6 +4,7 @@ from django.shortcuts import render_to_response ...@@ -4,6 +4,7 @@ from django.shortcuts import render_to_response
from firewall.models import * from firewall.models import *
from firewall.fw import * from firewall.fw import *
from django.views.decorators.csrf import csrf_exempt from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from django.db import IntegrityError from django.db import IntegrityError
from tasks import * from tasks import *
from celery.task.control import inspect from celery.task.control import inspect
...@@ -30,7 +31,7 @@ def reload_firewall(request): ...@@ -30,7 +31,7 @@ def reload_firewall(request):
return HttpResponse(html) return HttpResponse(html)
@csrf_exempt @csrf_exempt
@require_post @require_POST
def firewall_api(request): def firewall_api(request):
try: try:
data=json.loads(base64.b64decode(request.POST["data"])) data=json.loads(base64.b64decode(request.POST["data"]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment