Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Sep 12, 2023
1 parent 600b5d1 commit 26af897
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG/unreleased/kong/11538.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
message: Fix an issue that protocol `tls_passthough` can not work with expressions flavor
message: Fix an issue that protocol `tls_passthrough` can not work with expressions flavor
type: bugfix
scope: Core
prs:
Expand Down
2 changes: 1 addition & 1 deletion kong/router/expressions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local function get_exp_and_priority(route)
if protocols and #protocols == 1 and
(protocols[1] == "https" or
protocols[1] == "tls" or
protocols[1] == "tls_passthough")
protocols[1] == "tls_passthrough")
then
return exp, route.priority
end
Expand Down
4 changes: 2 additions & 2 deletions spec/01-unit/08-router_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4989,7 +4989,7 @@ do
service = service,
route = {
id = "e8fb37f1-102d-461e-9c51-6608a6bb8102",
protocols = { "tls_passthough" },
protocols = { "tls_passthrough" },
expression = [[tls.sni == "www.example.org"]],
priority = 100,
},
Expand All @@ -5014,7 +5014,7 @@ do
assert.same(use_case[1].route, match_t.route)
end)

it("exec() should match tls_passthough with tls.sni", function()
it("exec() should match tls_passthrough with tls.sni", function()
local _ngx = {
var = {
remote_port = 1000,
Expand Down

0 comments on commit 26af897

Please sign in to comment.