Update authentication.cr

This commit is contained in:
Ryan G 2023-06-13 01:35:20 -07:00
parent 46cb5dfa1c
commit 0dc8991f8e

View File

@ -4,7 +4,7 @@ module Invidious::Routes::API::V1::Authentication
body_io = env.request.body
body_json = "{}"
if body_io
body_json = env.request.body!.gets_to_end
body_json = env.request.body.not_nil!.gets_to_end
end
if CONFIG.registration_enabled
creds = nil