From 94fa9acc44150e68c8237c4fca9b367721187fd9 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sun, 27 Aug 2023 09:20:19 -0700 Subject: [PATCH] address aws_http test errors --- src/aws_http.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aws_http.zig b/src/aws_http.zig index 7225a36..1cfa7f2 100644 --- a/src/aws_http.zig +++ b/src/aws_http.zig @@ -283,7 +283,7 @@ fn endpointForRequest(allocator: std.mem.Allocator, service: []const u8, request if (try endpointException(allocator, service, request, options, realregion, dualstack, domain)) |e| return e; - const uri = try std.fmt.allocPrintZ(allocator, "https://{s}{s}.{s}.{s}", .{ service, dualstack, realregion, domain }); + const uri = try std.fmt.allocPrint(allocator, "https://{s}{s}.{s}.{s}", .{ service, dualstack, realregion, domain }); const host = try allocator.dupe(u8, uri["https://".len..]); log.debug("host: {s}, scheme: {s}, port: {}", .{ host, "https", 443 }); return EndPoint{ @@ -327,7 +327,7 @@ fn endpointException( const rest_of_path = request.path[bucket_name.len + 1 ..]; // TODO: Implement _ = options; - const uri = try std.fmt.allocPrintZ(allocator, "https://{s}.{s}{s}.{s}.{s}", .{ bucket_name, service, dualstack, realregion, domain }); + const uri = try std.fmt.allocPrint(allocator, "https://{s}.{s}{s}.{s}.{s}", .{ bucket_name, service, dualstack, realregion, domain }); const host = try allocator.dupe(u8, uri["https://".len..]); log.debug("S3 host: {s}, scheme: {s}, port: {}", .{ host, "https", 443 }); return EndPoint{