102
104
# Otherwise, use the blacklist/whitelist to see if this file should be
111
110
req.throw_error(req.HTTP_FORBIDDEN,
112
111
"Files of this type are not allowed to be served.")
115
interpret.interpret_file(req, req.user.login, user_jail_dir,
116
118
def serve_file_direct(req, filename, type):
117
119
"""Serves a file by directly writing it out to the response.