From 25fc79974ca58537544a5056299bf0ca4828467c Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 6 Aug 2018 23:03:50 -0500 Subject: [PATCH] Add support for empty continuation parameter --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 9d2a5924..9ad2e9b2 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1705,7 +1705,7 @@ get "/api/v1/comments/:id" do |env| ctoken = ctoken["ctoken"] itct = body.match(/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