From b0bf21efeacf7960aeacde3722697631a703572c Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 19 Sep 2024 15:45:36 -0700 Subject: [PATCH] fix: test --- examples/basic.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/basic.zig b/examples/basic.zig index ec1ab63..c2c2679 100644 --- a/examples/basic.zig +++ b/examples/basic.zig @@ -131,9 +131,9 @@ export fn http_get() i32 { const res = plugin.request(req, null) catch unreachable; defer res.deinit(); - if (res.status != 200) { + if (res.statusCode != 200) { plugin.setError("request failed"); - return @as(i32, res.status); + return @as(i32, res.statusCode); } // get the bytes for the res body