Skip to content

Commit

Permalink
fix fetcher not finding some URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Aug 26, 2024
1 parent 2830572 commit 6446069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/gosub_net/src/http/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6446069

Please sign in to comment.