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:
passbe
2011-04-26 09:57:03 +00:00
parent f13806fa5c
commit 1aa1fef079

View File

@@ -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'),