Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Sep 19, 2024
1 parent eb8f175 commit b0bf21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0bf21e

Please sign in to comment.