aboutsummaryrefslogtreecommitdiff
path: root/src/http.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/http.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http.zig b/src/http.zig
index 08ecbda92..cd5e386a1 100644
--- a/src/http.zig
+++ b/src/http.zig
@@ -2654,19 +2654,19 @@ pub const RequestContext = struct {
}
if (FeatureFlags.strong_etags_for_built_files) {
- const did_send = ctx.writeETag(buffer) catch false;
+ const did_send = ctx.writeETag(buffer.bytes) catch false;
if (did_send) return;
}
- if (buffer.len == 0) {
+ if (buffer.bytes.len == 0) {
return try ctx.sendNoContent();
}
defer ctx.done();
try ctx.writeStatus(200);
- try ctx.prepareToSendBody(buffer.len, false);
+ try ctx.prepareToSendBody(buffer.bytes.len, false);
if (!send_body) return;
- _ = try ctx.writeSocket(buffer, SOCKET_FLAGS);
+ _ = try ctx.writeSocket(buffer.bytes, SOCKET_FLAGS);
},
}
}