allow 202 - accepted, which is what we see in production
All checks were successful
Lambda-Zig Build / build (push) Successful in 39s
All checks were successful
Lambda-Zig Build / build (push) Successful in 39s
This commit is contained in:
parent
f444697d93
commit
5c36a2c979
1 changed files with 4 additions and 1 deletions
|
|
@ -211,7 +211,10 @@ const Event = struct {
|
||||||
var redirect_buffer: [1024]u8 = undefined;
|
var redirect_buffer: [1024]u8 = undefined;
|
||||||
const response = try req.receiveHead(&redirect_buffer);
|
const response = try req.receiveHead(&redirect_buffer);
|
||||||
|
|
||||||
if (response.head.status != .ok) return error.UnexpectedStatusFromPostResponse;
|
// Lambda Runtime API returns 202 Accepted for successful response posts
|
||||||
|
if (response.head.status != .ok and response.head.status != .accepted) {
|
||||||
|
return error.UnexpectedStatusFromPostResponse;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue