Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/policy/cors/cors_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('CORS policy', function()

it('sets those headers', function()
local policy_config = {
allow_headers = 'Content-Type',
allow_headers = { 'Content-Type' },
allow_methods = { 'GET', 'POST' },
allow_origin = '*',
allow_credentials = true
Expand Down
2 changes: 1 addition & 1 deletion spec/policy/url_rewriting/url_rewriting_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('URL rewriting policy', function()
it('when there is a break, stops at the first match', function()
local config_with_break = {
commands = {
{ op = 'gsub', regex = 'to_be_replaced', replace = 'abc', ['break'] = '1' },
{ op = 'gsub', regex = 'to_be_replaced', replace = 'abc', ['break'] = true },
{ op = 'gsub', regex = 'abc', replace = 'def' } -- Not applied
}
}
Expand Down