Skip to content

Commit

Permalink
fix: update build script and http start function for the latest zig v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
matdexir committed Sep 30, 2023
1 parent 6d8ebac commit c154971
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn get_buzz_prefix(b: *Build) []const u8 {
pub fn build(b: *Build) !void {
// Check minimum zig version
const current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse("0.12.0-dev.411+ada02ac6f") catch return;
const min_zig = std.SemanticVersion.parse("0.12.0-dev.668+c07d6e4c1") catch return;
if (current_zig.order(min_zig).compare(.lt)) {
@panic(b.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{ current_zig, min_zig }));
}
Expand Down
4 changes: 3 additions & 1 deletion src/lib/buzz_http.zig
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export fn HttpClientSend(ctx: *api.NativeCtx) c_int {
return -1;
};

request.start() catch |err| {
const options = http.Client.Request.StartOptions{ .raw_uri = false };

request.start(options) catch |err| {
handleStartError(ctx, err);

return -1;
Expand Down

0 comments on commit c154971

Please sign in to comment.