Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki committed Nov 21, 2024
1 parent fb22509 commit e8d54f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kong/db/strategies/off/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ local function page_for_prefix(self, prefix, size, offset, options, follow)

-- special handling for page size 1.
-- drop other results
if size == 1 then
if size == 1 and size < res then
res = { res[1] }
err_or_more = true
end

local ret = {}
Expand Down

0 comments on commit e8d54f3

Please sign in to comment.