💾 Archived View for rwv.io › src › src captured on 2023-09-08 at 16:02:31.
⬅️ Previous capture (2020-11-07)
-=-=-=-=-=-=-
#!/usr/bin/env ruby PATH_INFO = ENV['PATH_INFO'] ROOT_PATH = File.absolute_path(__FILE__ + '/../') if PATH_INFO path = File.absolute_path(ROOT_PATH + '/' + PATH_INFO) if path.start_with?(ROOT_PATH) && File.file?(path) && File.readable?(path) print "20 text/plain\r\n" print File.read(path) else print "59 ..\r\n" end else print "51 ..\r\n" end