Skip to content

Commit

Permalink
fix: cors headers for AWS Lambda (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang authored Oct 1, 2021
1 parent 656127d commit b19def0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bentoml/adapters/json_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ def to_aws_lambda_event(self, result: InferenceResult) -> AwsLambdaEvent:
return {
"statusCode": result.http_status,
"body": result.err_msg or result.data,
"headers": dict(),
}

0 comments on commit b19def0

Please sign in to comment.