Skip to content

Commit

Permalink
Don't respond to GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelb committed Apr 28, 2014
1 parent 9d35add commit 04d9696
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/config/middleware.py
Expand Up @@ -345,7 +345,8 @@ def __init__(self, app, config):

def __call__(self, environ, start_response):
path = environ['PATH_INFO']
if path == '/_tracking':
method = environ.get('REQUEST_METHOD')
if path == '/_tracking' and method == 'POST':
# do the tracking
# get the post data
payload = environ['wsgi.input'].read()
Expand Down

0 comments on commit 04d9696

Please sign in to comment.