aboutsummaryrefslogtreecommitdiff
path: root/src/http/websocket_http_client.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-15 17:52:04 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-15 17:52:04 -0800
commit934360646fd063a84c6527eea059dc40ae0050bb (patch)
tree41d17932e07fd3230ab924b102079d84ee0403e3 /src/http/websocket_http_client.zig
parent98df9d7703708cc7351563b9500d6a337003c3eb (diff)
downloadbun-u/vjpr/zig-0.10.tar.gz
bun-u/vjpr/zig-0.10.tar.zst
bun-u/vjpr/zig-0.10.zip
Diffstat (limited to 'src/http/websocket_http_client.zig')
-rw-r--r--src/http/websocket_http_client.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/websocket_http_client.zig b/src/http/websocket_http_client.zig
index 2d7ddf47b..24aeaf472 100644
--- a/src/http/websocket_http_client.zig
+++ b/src/http/websocket_http_client.zig
@@ -51,8 +51,8 @@ fn buildRequestBody(vm: *JSC.VirtualMachine, pathname: *const JSC.ZigString, hos
const pico_headers = PicoHTTP.Headers{ .headers = headers_ };
return try std.fmt.allocPrint(
allocator,
- "GET {any} HTTP/1.1\r\n" ++
- "Host: {any}\r\n" ++
+ "GET {s} HTTP/1.1\r\n" ++
+ "Host: {s}\r\n" ++
"Pragma: no-cache\r\n" ++
"Cache-Control: no-cache\r\n" ++
"Connection: Upgrade\r\n" ++
@@ -978,7 +978,7 @@ pub fn NewWebSocketClient(comptime ssl: bool) type {
var header_bytes: [@sizeOf(usize)]u8 = [_]u8{0} ** @sizeOf(usize);
while (true) {
- log("onData ({any})", .{@tagName(receive_state)});
+ log("onData ({s})", .{@tagName(receive_state)});
switch (receive_state) {
// 0 1 2 3