diff options
Diffstat (limited to 'lib/overwrite.rb')
-rw-r--r-- | lib/overwrite.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/overwrite.rb b/lib/overwrite.rb index df4e1b7..393e8e7 100644 --- a/lib/overwrite.rb +++ b/lib/overwrite.rb @@ -50,7 +50,8 @@ class Sinatra::Base halt task.http_code,task.to_yaml # PENDING differs from task-webservice when /html/ response['Content-Type'] = "text/html" - halt task.http_code,OpenTox.text_to_html(task.to_yaml, @subjectid) + # html -> task created with html form -> redirect to task uri + redirect task.uri else # default /uri-list/ response['Content-Type'] = "text/uri-list" if task.completed? |