From 3d27b84e2d48ef6e4c86b8fc9017117b6586739e Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 20 Jan 2022 07:32:40 -0800 Subject: [PATCH] include query in url --- src/aws_http.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aws_http.zig b/src/aws_http.zig index bf74374..8de5cbf 100644 --- a/src/aws_http.zig +++ b/src/aws_http.zig @@ -157,7 +157,7 @@ pub const AwsHttp = struct { log.debug("\t{s}: {s}", .{ h.name, h.value }); } - const url = try std.fmt.allocPrint(self.allocator, "{s}{s}", .{ endpoint.uri, request.path }); + const url = try std.fmt.allocPrint(self.allocator, "{s}{s}{s}", .{ endpoint.uri, request.path, request.query }); defer self.allocator.free(url); log.debug("Request url: {s}", .{url}); var req = try zfetch.Request.init(self.allocator, url, self.trust_chain);