Skip to content

Commit c12c10e

Browse files
committed
Fixed incorrect documentation comment for get_allowed_origin method.
1 parent 4f65edf commit c12c10e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/haproxy/cors.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
-- If the given origin is found within the allowed_origins string, it is returned. Otherwise, nil is returned.
2424
-- origin: The value from the 'origin' request header
25-
-- allowed_methods: Comma-delimited list of allowed HTTP methods. (e.g. GET,POST,PUT,DELETE)
25+
-- allowed_origins: Comma-delimited list of allowed origins. (e.g. localhost,localhost:8080,test.com)
2626
function get_allowed_origin(origin, allowed_origins)
2727
if origin ~= nil then
2828
local allowed_origins = core.tokenize(allowed_origins, ",")

lib/cors.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
-- If the given origin is found within the allowed_origins string, it is returned. Otherwise, nil is returned.
2424
-- origin: The value from the 'origin' request header
25-
-- allowed_methods: Comma-delimited list of allowed HTTP methods. (e.g. GET,POST,PUT,DELETE)
25+
-- allowed_origins: Comma-delimited list of allowed origins. (e.g. localhost,localhost:8080,test.com)
2626
function get_allowed_origin(origin, allowed_origins)
2727
if origin ~= nil then
2828
local allowed_origins = core.tokenize(allowed_origins, ",")

0 commit comments

Comments
 (0)