summaryrefslogtreecommitdiff
path: root/validation/validation_application.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-02-03 18:14:20 +0100
committermguetlein <martin.guetlein@gmail.com>2011-02-03 18:14:20 +0100
commitaca886bf82e7ebf5a9d76642614418ed983ab45e (patch)
treebdd9b22fccfff637dddd0b10d4800a8e41fe8382 /validation/validation_application.rb
parent7906047a423d94692581ac6aa15295924c8b89db (diff)
adding weighted_accuracy, change accuracy computation, some minor changes
Diffstat (limited to 'validation/validation_application.rb')
-rwxr-xr-xvalidation/validation_application.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/validation/validation_application.rb b/validation/validation_application.rb
index b444b3f..9b517cf 100755
--- a/validation/validation_application.rb
+++ b/validation/validation_application.rb
@@ -549,11 +549,9 @@ get '/:id' do
"All validations: "+url_for("/",:full)+"\n"+
"All validation reports: "+url_for("/report/validation",:full)
OpenTox.text_to_html validation.to_yaml,related_links,description
- when /application\/x-yaml|\*\/\*/
+ else #default is yaml
content_type "application/x-yaml"
validation.to_yaml
- else
- raise OpenTox::BadRequestError.new "MIME type '"+request.env['HTTP_ACCEPT'].to_s+"' not supported, valid Accept-Headers: \"application/rdf+xml\", \"application/x-yaml\", \"text/html\"."
end
end