Fixes issue #328. Dynamic handler now passes response headers correctly
git-svn-id: https://beef.googlecode.com/svn/trunk@929 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -18,6 +18,10 @@ module Handlers
|
||||
#Combines packet information and pushes to PQ, then checks packets
|
||||
def do_POST(request, response)
|
||||
@request = request
|
||||
response.set_no_cache
|
||||
response.header['Content-Type'] = 'text/javascript'
|
||||
response.header['Access-Control-Allow-Origin'] = '*'
|
||||
response.header['Access-Control-Allow-Methods'] = 'POST'
|
||||
response.body = ''
|
||||
PQ << {
|
||||
:beefhook => get_param(@request.query, 'bh'),
|
||||
|
||||
Reference in New Issue
Block a user