Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FieryCod committed Jul 6, 2022
1 parent 06fb440 commit c168a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ This is why holy-lambda-ring-adapter was released. An adapter is a part of holy-
## Compatibility
- AWS ApiGateway Lambda Integration
- [HttpApi](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop.html#http-api-examples)
- Java Version >= 11
- [RestApi](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-rest-api.html)
- Java Version >= 11 or Babashka >= 0.8.2
- GraalVM Native Image >= 21.2.0
- Holy Lambda >= 0.6.0 [all backends: [native](https://fierycod.github.io/holy-lambda/#/native-backend-tutorial), [babashka](https://fierycod.github.io/holy-lambda/#/babashka-backend-tutorial), [clojure](https://fierycod.github.io/holy-lambda/#/clojure-backend-tutorial)

Expand Down
2 changes: 1 addition & 1 deletion src/fierycod/holy_lambda_ring_adapter/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
headers (get event :headers)
base64? (get event :isBase64Encoded)]
(when-not request-ctx
(throw (ex-info "Incorrect shape of AWS event. The adapter is compatible with HttpApi and AWS ApiGateway. If you're testing locally make sure the event shape is valid e.g. use `sam local start-api` instead of `sam local invoke`." {:ctx :hl-ring-adapter})))
(throw (ex-info "Incorrect shape of AWS event. The adapter is compatible with following integrations: HttpApi and RestApi on AWS Api Gateway service. If you're testing locally make sure the event shape is valid e.g. use `sam local start-api` instead of `sam local invoke`." {:ctx :hl-ring-adapter})))

{:server-port (some-> (get headers "x-forwarded-port") (Integer/parseInt))
:body (impl/to-ring-request-body (:body event) base64?)
Expand Down

0 comments on commit c168a86

Please sign in to comment.