include query in url

This commit is contained in:
Emil Lerch 2022-01-20 07:32:40 -08:00
parent 46685043e5
commit 3d27b84e2d
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -157,7 +157,7 @@ pub const AwsHttp = struct {
log.debug("\t{s}: {s}", .{ h.name, h.value }); 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); defer self.allocator.free(url);
log.debug("Request url: {s}", .{url}); log.debug("Request url: {s}", .{url});
var req = try zfetch.Request.init(self.allocator, url, self.trust_chain); var req = try zfetch.Request.init(self.allocator, url, self.trust_chain);