Skip to content

Commit d4934b5

Browse files
committed
web: changed response status of search result.
1 parent ef4b37a commit d4934b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/lua/opmserver.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,9 +1479,9 @@ do
14791479
-- say(encode_json(rows))
14801480

14811481
if #rows == 0 then
1482-
ngx.status = 404
1482+
ngx.status = 200
14831483
say("no search result found.")
1484-
return ngx.exit(404)
1484+
return ngx.exit(200)
14851485
end
14861486

14871487
tab_clear(results)

0 commit comments

Comments
 (0)