diff --git a/crates/gosub_net/src/http/fetcher.rs b/crates/gosub_net/src/http/fetcher.rs index ffc76baa1..d297492d6 100644 --- a/crates/gosub_net/src/http/fetcher.rs +++ b/crates/gosub_net/src/http/fetcher.rs @@ -25,7 +25,8 @@ impl Fetcher { response.try_into()? } else if scheme == "file" { - let path = url.path(); + let path = &url.as_str()[7..]; + let body = std::fs::read(path)?; Response::from(body)