aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-16 19:31:34 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-02-23 02:37:11 -0700
commit0ddcb8341822cf9e3fd555c29a9e011b9a91d9fc (patch)
tree5a198a19520906df80af319a475d975ad915b1ac /lib/std
parent7036644ed2a50e4b10f45b8fce23ce5258e5f58f (diff)
downloadzig-0ddcb8341822cf9e3fd555c29a9e011b9a91d9fc.tar.gz
zig-0ddcb8341822cf9e3fd555c29a9e011b9a91d9fc.zip
std.http.Client.fetch: remove inappropriate seek
no
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/http/Client.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/std/http/Client.zig b/lib/std/http/Client.zig
index de66efb7ff..3b7a618fd6 100644
--- a/lib/std/http/Client.zig
+++ b/lib/std/http/Client.zig
@@ -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());
},