diff --git a/.github/workflows/flexapp.yaml b/.github/workflows/flexapp.yaml index 854c7e3..c7391f3 100644 --- a/.github/workflows/flexapp.yaml +++ b/.github/workflows/flexapp.yaml @@ -30,6 +30,7 @@ jobs: once: name: Create GitHub release runs-on: 'ubuntu-latest' + environment: production needs: testing env: # For tag pushes, these will be the tag refs; diff --git a/src/download.zig b/src/download.zig index 564ff30..e52e56b 100644 --- a/src/download.zig +++ b/src/download.zig @@ -15,7 +15,7 @@ pub fn download(allocator: std.mem.Allocator, url: []const u8) ![]const u8 { const uri = try std.Uri.parse(url); var buf: [8192]u8 = undefined; var req = client.request(.GET, uri, .{ - .redirect_behavior = .unhandled, + .redirect_behavior = @enumFromInt(65000), .keep_alive = false, }) catch |err| { std.debug.print("Error creating request: {}\n", .{err}); @@ -23,7 +23,7 @@ pub fn download(allocator: std.mem.Allocator, url: []const u8) ![]const u8 { }; defer req.deinit(); - req.redirect_behavior = .unhandled; + req.redirect_behavior = @enumFromInt(65000); try req.sendBodiless(); var response = try req.receiveHead(&buf);