Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CStatic < R '/control/s/(.+)'
- def get(path)
- @headers['Content-Type'] = MIME_TYPES[path[/\.\w+$/, 0]] || "text/plain"
- #@headers['X-Sendfile'] = File.join(ParkPlace::STATIC_PATH, path)
- @body = File.read(File.join(ParkPlace::STATIC_PATH, path))
- end
- end
Add Comment
Please, Sign In to add comment