Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lambda/invoke_loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func reportFailure(invoke *invoke, invokeErr *messages.InvokeResponse_Error) err

causeForXRay, err := json.Marshal(makeXRayError(invokeErr))
if err != nil {
return fmt.Errorf("unexpected error occured when serializing the function error cause for X-Ray: %v", err)
return fmt.Errorf("unexpected error occurred when serializing the function error cause for X-Ray: %v", err)
}

if err := invoke.failure(bytes.NewReader(errorPayload), contentTypeJSON, causeForXRay); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion lambdaurl/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func Wrap(handler http.Handler) func(context.Context, *events.LambdaFunctionURLR
defer close(ready)
defer w.Close() // TODO: recover and CloseWithError the any panic value once the runtime API client supports plumbing fatal errors through the reader
//nolint:errcheck
defer responseWriter.Write(nil) // force default status, headers, content type detection, if none occured during the execution of the handler
defer responseWriter.Write(nil) // force default status, headers, content type detection, if none occurred during the execution of the handler
handler.ServeHTTP(responseWriter, httpRequest)
}()
header := <-ready
Expand Down
Loading