app/main.rb in nephos-server-0.6.9 vs app/main.rb in nephos-server-0.7.0

- old
+ new

@@ -58,11 +58,11 @@ def image dir = File.expand_path('app/') file = File.expand_path(params["image"], dir) if not file[0..(dir.size-1)] == dir or not AUTH_IMG_EXT.include?(File.extname(file)) return {status: 500, content: "invalid path #{params['image']}"} - elsif not File.exists? file + elsif not File.exist? file return {status: 404, content: "invalid path #{params['image']}"} else return {type: 'image/jpeg', content: File.read(file)} end end @@ -74,12 +74,12 @@ def get_cookies {json: cookies.to_h} end - # require 'pry' def debug - # binding.pry + #require 'pry' + #binding.pry {} end def log_param_x Logger.fd = File.open '/tmp/nephos_ftest.log', 'w'