diff options
author | mr <mr@mrautenberg.de> | 2011-08-04 18:18:40 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-08-04 18:18:40 +0200 |
commit | fb072193eebcd9dc1d64e66456846c9a08297163 (patch) | |
tree | d2a07dd5d051549f527778264bca6a5e677b60fe /application.rb | |
parent | a9c32e08d4e01da1d63e8212fd0870d39b4f112f (diff) | |
parent | bce27bd8e66deebb6f438e56957f575399946a50 (diff) |
solve merge conflicts (take new development version of fminer.rb)v2.1.0
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/application.rb b/application.rb index 55a8ea4..32fea95 100644 --- a/application.rb +++ b/application.rb @@ -22,6 +22,13 @@ end # # @return [text/uri-list] algorithm URIs get '/?' do - response['Content-Type'] = 'text/uri-list' - [ url_for('/lazar', :full), url_for('/fminer/bbrc', :full), url_for('/fminer/last', :full) ].join("\n") + "\n" + list = [ url_for('/lazar', :full), url_for('/fminer/bbrc', :full), url_for('/fminer/last', :full) ].join("\n") + "\n" + case request.env['HTTP_ACCEPT'] + when /text\/html/ + content_type "text/html" + OpenTox.text_to_html list + else + content_type 'text/uri-list' + list + end end |