Add support for empty continuation parameter

This commit is contained in:
Omar Roth 2018-08-06 23:03:50 -05:00
parent e190624eb0
commit 25fc79974c

View File

@ -1705,7 +1705,7 @@ get "/api/v1/comments/:id" do |env|
ctoken = ctoken["ctoken"]
itct = body.match(/itct=(?<itct>[^"]+)"/).not_nil!["itct"]
if env.params.query["continuation"]?
if env.params.query["continuation"]? && !env.params.query["continuation"].empty?
continuation = env.params.query["continuation"]
ctoken = continuation
else