Skip to content

Commit dd28535

Browse files
committed
pipe doesn't require result handling anymore
Nicer code.
1 parent 96bf7ef commit dd28535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/httpproxy/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ http.createServer { req, res in
4242
}
4343

4444
// Send the request body to the target server
45-
_ = req.pipe(proxiedRequest)
45+
req.pipe(proxiedRequest)
4646
}
4747
.listen(1337) { server in
4848
server.log.log("Server listening on http://0.0.0.0:1337/")

0 commit comments

Comments
 (0)