[fetch] Add support for gzip & deflate to the http client

Powered by Cloudflare's zlib fork
This commit is contained in:
Jarred Sumner
2021-10-10 23:41:18 -07:00
parent 5e3d1dd4b5
commit 0db7af6166
18 changed files with 1466 additions and 1100 deletions

View File

@@ -93,7 +93,6 @@ pub const Linker = struct {
return hashed_result.value_ptr.*;
}
}
var file: std.fs.File = if (fd) |_fd| std.fs.File{ .handle = _fd } else try std.fs.openFileAbsolute(file_path.text, .{ .read = true });
Fs.FileSystem.setMaxFd(file.handle);
var modkey = try Fs.FileSystem.RealFS.ModKey.generate(&this.fs.fs, file_path.text, file);