Commit 973ab86d authored by Jérome Perrin's avatar Jérome Perrin

sql_browser: check request method

parent aa1b9145
......@@ -5,7 +5,12 @@ import json
from DateTime import DateTime
import six
response = container.REQUEST.RESPONSE
request = container.REQUEST
if request['REQUEST_METHOD'] != 'POST':
from zExceptions import BadRequest
raise BadRequest
response = request.RESPONSE
start = time.time()
try:
results = context.manage_test(query)
......
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 to comment