diff options
| author | kcbanner <kcbanner@gmail.com> | 2025-08-09 15:57:15 -0400 |
|---|---|---|
| committer | kcbanner <kcbanner@gmail.com> | 2025-08-09 16:06:33 -0400 |
| commit | 125c4a265aa7cfe82b3fc0c1ac7de75a07315411 (patch) | |
| tree | 42d85f7fdee5e5efc406b474a14df423ad561bc9 /lib/std/http | |
| parent | 5f7a0bbabfde4eeb0ff4f40f0942ef710b6104a1 (diff) | |
| download | zig-125c4a265aa7cfe82b3fc0c1ac7de75a07315411.tar.gz zig-125c4a265aa7cfe82b3fc0c1ac7de75a07315411.zip | |
Fix `respondWebSocket`, enable --webui on Windows
This commit re-enables the --webui functionality on windows, with the caveat that rebuild functionality is still disabled (due to deadlocks caused by reading to / writing from the same non-overlapped socket on multiple threads). I updated the UI to be aware of this, and hide the `Rebuild` button.
http.Server: Remove incorrect advance() call. This was causing browsers to disconnect the websocket, as we were sending undefined bytes.
build.WebServer: Re-enable on windows, but disable functionality that requires receiving messages from the client
build-web: Show total times in tables
Diffstat (limited to 'lib/std/http')
| -rw-r--r-- | lib/std/http/Server.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/std/http/Server.zig b/lib/std/http/Server.zig index 9574a4dc6a..ebea94acc9 100644 --- a/lib/std/http/Server.zig +++ b/lib/std/http/Server.zig @@ -546,7 +546,6 @@ pub const Request = struct { try out.writeAll("connection: upgrade\r\nupgrade: websocket\r\nsec-websocket-accept: "); const base64_digest = try out.writableArray(28); assert(std.base64.standard.Encoder.encode(base64_digest, &digest).len == base64_digest.len); - out.advance(base64_digest.len); try out.writeAll("\r\n"); for (options.extra_headers) |header| { |
