From 48c0e893da20c9821f6fe55516861e08b9cb6c77 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 6 May 2024 11:18:08 -0700 Subject: [PATCH] change response object header type to be immutable --- src/interface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.zig b/src/interface.zig index 6545931..a3ca731 100644 --- a/src/interface.zig +++ b/src/interface.zig @@ -57,7 +57,7 @@ pub const ZigResponse = struct { status: std.http.Status = .ok, reason: ?[]const u8 = null, body: *std.ArrayList(u8), - headers: []std.http.Header, + headers: []const std.http.Header, request: ZigRequest, prepend: std.ArrayList(u8),