fix bug introduced when moving to built in client

This commit is contained in:
Emil Lerch 2023-08-01 19:45:39 -07:00
parent 2c8eb248f8
commit f26b735a55
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -60,7 +60,7 @@ pub fn run(allocator: ?std.mem.Allocator, event_handler: HandlerFn) !void { // T
var request_id: ?[]const u8 = null;
var content_length: ?usize = null;
for (req.headers.list.items) |h| {
for (req.response.headers.list.items) |h| {
if (std.ascii.eqlIgnoreCase(h.name, "Lambda-Runtime-Aws-Request-Id"))
request_id = h.value;
if (std.ascii.eqlIgnoreCase(h.name, "Content-Length")) {