summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2021-08-23 17:05:57 -0700
committersyeopite <syeopite@syeopite.dev>2021-08-23 17:07:45 -0700
commitd984a898d49f8f15796c5ac18c288bffdd387e43 (patch)
treed5a927be74b7342e5585b96780d2f6f968dd1b4c
parent52688106e4cf36d84f530baf062f60d77ba2ab20 (diff)
downloadinvidious-d984a898d49f8f15796c5ac18c288bffdd387e43.tar.gz
invidious-d984a898d49f8f15796c5ac18c288bffdd387e43.tar.bz2
invidious-d984a898d49f8f15796c5ac18c288bffdd387e43.zip
Remove usage of haltf in /api/v1/channels/:ucid/comments
-rw-r--r--src/invidious/routes/api/v1/channels.cr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious/routes/api/v1/channels.cr b/src/invidious/routes/api/v1/channels.cr
index 5caa656d..da39661c 100644
--- a/src/invidious/routes/api/v1/channels.cr
+++ b/src/invidious/routes/api/v1/channels.cr
@@ -272,6 +272,7 @@ module Invidious::Routes::API::V1::Channels
ucid = env.params.url["ucid"]
env.response.headers["Location"] = "/api/v1/channels/#{ucid}/community?#{env.params.query}"
- haltf env, status_code: 301
+ env.response.status_code = 301
+ return
end
end