mirror of
https://github.com/denoland/deno.git
synced 2025-08-30 23:38:03 +00:00
This reverts commit fb31eaa9ca
.
Reverting because users reported spurious errors when downloading
dependencies - https://github.com/denoland/deno/issues/24260.
Closes https://github.com/denoland/deno/issues/24260
This commit is contained in:
parent
f4eead61eb
commit
b94707af7d
35 changed files with 656 additions and 396 deletions
|
@ -31,7 +31,7 @@ impl FetchHandler for FsFetchHandler {
|
|||
let file = tokio::fs::File::open(path).map_err(|_| ()).await?;
|
||||
let stream = ReaderStream::new(file);
|
||||
let body = reqwest::Body::wrap_stream(stream);
|
||||
let response = http::Response::builder()
|
||||
let response = http_v02::Response::builder()
|
||||
.status(StatusCode::OK)
|
||||
.body(body)
|
||||
.map_err(|_| ())?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue