Skip to main content

reject_github_resource_path

Function reject_github_resource_path 

Source
pub fn reject_github_resource_path(
    req_id: &str,
    operation: &str,
    path: &str,
) -> Result<(), Response>
Expand description

Returns an error response when path is a GitHub address. Mutating handlers call this before resolving a path so the address can never become a file on disk.