mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 01:15:14 +00:00
std.http.Client.fetch: remove inappropriate seek
no
This commit is contained in:
parent
7036644ed2
commit
0ddcb83418
@ -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());
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user