Guest User

Untitled

a guest
Feb 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. class CStatic < R '/control/s/(.+)'
  2. def get(path)
  3. @headers['Content-Type'] = MIME_TYPES[path[/\.\w+$/, 0]] || "text/plain"
  4. #@headers['X-Sendfile'] = File.join(ParkPlace::STATIC_PATH, path)
  5. @body = File.read(File.join(ParkPlace::STATIC_PATH, path))
  6. end
  7. end
Add Comment
Please, Sign In to add comment