std.http.Client.fetch: remove inappropriate seek

no
This commit is contained in:
Andrew Kelley 2024-02-16 19:31:34 -07:00
parent 7036644ed2
commit 0ddcb83418

View File

@ -1659,7 +1659,6 @@ pub fn fetch(client: *Client, allocator: Allocator, options: FetchOptions) !Fetc
switch (options.payload) {
.string => |str| try req.writeAll(str),
.file => |file| {
try file.seekTo(0);
var fifo = std.fifo.LinearFifo(u8, .{ .Static = 8192 }).init();
try fifo.pump(file.reader(), req.writer());
},