From bacb9b4603f5a8befb5f59bd62be43061699da11 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 19 Sep 2024 15:37:38 -0700 Subject: [PATCH] fix: duplicate struct field --- src/http.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.zig b/src/http.zig index 7764ac9..596d698 100644 --- a/src/http.zig +++ b/src/http.zig @@ -3,7 +3,7 @@ const Memory = @import("Memory.zig"); pub const HttpResponse = struct { memory: Memory, - status: u16, + statusCode: u16, /// IMPORTANT: it's the caller's responsibility to free the returned string pub fn body(self: HttpResponse, allocator: std.mem.Allocator) ![]u8 { @@ -18,7 +18,7 @@ pub const HttpResponse = struct { } pub fn status(self: HttpResponse) u16 { - return self.status; + return self.statusCode; } };