From 8b88a976268f1c211962b309c9017e9d8b291883 Mon Sep 17 00:00:00 2001 From: xumin Date: Wed, 1 Nov 2023 13:39:24 +0800 Subject: [PATCH] apply suggestion --- spec/02-integration/04-admin_api/07-upstreams_routes_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/02-integration/04-admin_api/07-upstreams_routes_spec.lua b/spec/02-integration/04-admin_api/07-upstreams_routes_spec.lua index a7d5121bf32..69f7bb52ea7 100644 --- a/spec/02-integration/04-admin_api/07-upstreams_routes_spec.lua +++ b/spec/02-integration/04-admin_api/07-upstreams_routes_spec.lua @@ -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 @@ -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