diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-19 11:26:24 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-19 11:26:24 +0100 |
commit | 1bac8bd64f9f703d7e20a65da0ffb05cb150e90f (patch) | |
tree | 2ecbb0e81abc2a54798f9f0aed2150cd2fb18917 /lib/overwrite.rb | |
parent | 267b691017202c2fccf69dbeecfd4ed524a73fc2 (diff) |
add login functionality to webservices
Diffstat (limited to 'lib/overwrite.rb')
-rw-r--r-- | lib/overwrite.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/overwrite.rb b/lib/overwrite.rb index 29a2860..b5c3942 100644 --- a/lib/overwrite.rb +++ b/lib/overwrite.rb @@ -29,7 +29,7 @@ error Exception do halt error.http_code,rep.to_rdfxml when /html/ content_type 'text/html' - halt error.http_code,(OpenTox.text_to_html rep.to_yaml) + halt error.http_code,(OpenTox.text_to_html rep.to_yaml, @subjectid) else content_type 'application/x-yaml' halt error.http_code,rep.to_yaml @@ -49,7 +49,7 @@ class Sinatra::Base halt code,task.to_yaml # PENDING differs from task-webservice when /html/ response['Content-Type'] = "text/html" - halt code,OpenTox.text_to_html(task.to_yaml) + halt code,OpenTox.text_to_html(task.to_yaml, @subjectid) else # default /uri-list/ response['Content-Type'] = "text/uri-list" halt code,task.uri+"\n" |