diff options
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application.rb b/application.rb index ef059b2..fb03a72 100644 --- a/application.rb +++ b/application.rb @@ -21,7 +21,7 @@ PUBCHEM_CID_URI = PUBCHEM_URI.split("/")[0..-3].join("/")+"/compound/" configure :production, :development do STDOUT.sync = true $logger = Logger.new(STDOUT) - $logger.level = Logger::DEBUG + #$logger.level = Logger::DEBUG end before do @@ -42,7 +42,7 @@ before do if request.path =~ /predict/ @accept = request.env['HTTP_ACCEPT'].split(",").first response['Content-Type'] = @accept - halt 400, "Mime type #{@accept} is not supported." unless @accept == "text/html" || "*/*" + halt 400, "Mime type #{@accept} is not supported." unless @accept == "text/html" or @accept == "*/*" @version = File.read("VERSION").chomp else @accept = request.env['HTTP_ACCEPT'].split(",").first |