diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-14 17:46:14 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-14 17:46:14 +0100 |
commit | ebaeedc374729ffb737fdc9bd5b1166548678036 (patch) | |
tree | ef2983d8f9c0df713f7ae84a54f9af859fda486f /report/report_application.rb | |
parent | 6a720662721f3c7b67d41189cb8966929b30a048 (diff) |
set cookie in reports, hack for ambit, new examples
Diffstat (limited to 'report/report_application.rb')
-rwxr-xr-x | report/report_application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/report/report_application.rb b/report/report_application.rb index 1a4504d..ab3d91b 100755 --- a/report/report_application.rb +++ b/report/report_application.rb @@ -76,7 +76,6 @@ end get '/report/:type/:id' do - perform do |rs| accept_header = request.env['HTTP_ACCEPT'] @@ -90,6 +89,8 @@ get '/report/:type/:id' do result = body(File.new(report)) end end + + response.set_cookie("subjectid", @subjectid) end #OpenTox::Authorization.whitelist( Regexp.new("/report/.*/[0-9]+/.*"),"GET") |