Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/flexapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/download.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ 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});
return "unknown.txt";
};
defer req.deinit();

req.redirect_behavior = .unhandled;
req.redirect_behavior = @enumFromInt(65000);
try req.sendBodiless();
var response = try req.receiveHead(&buf);

Expand Down