Skip to content

Commit 961449d

Browse files
committed
fixup! Fix default function name
1 parent 881c50b commit 961449d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ The rest of these Environment Variables can be set to match AWS Lambda's environ
174174
175175
By default `aws-lambda-rie` sets the value of the `AWS_LAMBDA_FUNCTION_NAME` environment variable to `test_function`, while the
176176
function name in the endpoint URL is `function`. If you want the RIE to behave like AWS Lambda, where the function name in the
177-
endpoint matches the value of the environment variable, set the value of the `AWS_LAMBDA_RIE_INCONSISTENT_BEHAVIOUR`
178-
environment variable to `"FALSE"`.
177+
endpoint matches the value of the environment variable, set the value of the `AWS_LAMBDA_RIE_DYNAMIC_FUNCTION_URL`
178+
environment variable to `"TRUE"`.
179179
180180
## Level of support
181181

cmd/aws-lambda-rie/handlers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func GetenvWithDefault(key string, defaultValue string) string {
5757

5858
func GetFunctionName() string {
5959
defaultValue := "function"
60-
if GetenvWithDefault("AWS_LAMBDA_RIE_INCONSISTENT_BEHAVIOUR", "TRUE") == "TRUE" {
60+
if GetenvWithDefault("AWS_LAMBDA_RIE_DYNAMIC_FUNCTION_URL", "FALSE") == "FALSE" {
6161
defaultValue = "test_function"
6262
}
6363
return GetenvWithDefault("AWS_LAMBDA_FUNCTION_NAME", defaultValue)

0 commit comments

Comments
 (0)