Commit 0dd3a069 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

sql_browser: check request method

parent 6f09ba28
......@@ -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