INNER CODE UNIT · Python

get_static_files

OWASP/Python-Honeypot · api/server.py:235

def get_static_files(path):
    """
    getting static files and return content mime types

    Args:
        path: path and filename

    Returns:
        file content and content type if file found otherwise abort(404)
    """
    static_types = all_mime_types()
    return Response(
        get_file(
            os.path.join(
                root_dir(),
                path
            )
        ),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…