Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki authored and hanshuebner committed Nov 6, 2023
1 parent 27d4a8f commit 8b88a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/02-integration/04-admin_api/07-upstreams_routes_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ describe("Admin API: #" .. strategy, function()
})
body = assert.res_status(400, res)
local json = cjson.decode(body)
assert.equals([[must not contain invalid characters: ASCII control characters (0-31;127), space, tab and the following characters: ()<>@,;:"/?={}[]. Please refer to RFC 2616]],
assert.equals([[contains one or more invalid characters. ASCII control characters (0-31;127), space, tab and the characters ()<>@,;:\"/?={}[] are not allowed.]],
json.fields.hash_on_cookie)

-- Invalid cookie path
Expand Down Expand Up @@ -437,7 +437,7 @@ describe("Admin API: #" .. strategy, function()
})
body = assert.res_status(400, res)
local json = cjson.decode(body)
assert.equals([[must not contain invalid characters: ASCII control characters (0-31;127), space, tab and the following characters: ()<>@,;:"/?={}[]. Please refer to RFC 2616]],
assert.equals([[contains one or more invalid characters. ASCII control characters (0-31;127), space, tab and the characters ()<>@,;:\"/?={}[] are not allowed.]],
json.fields.hash_on_cookie)

-- Invalid cookie path in hash fallback
Expand Down

0 comments on commit 8b88a97

Please sign in to comment.