mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
fix(search.cr): http status code
This commit is contained in:
parent
5fa293541b
commit
3abf21625c
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ module Invidious::Routes::API::V1::Search
|
||||||
|
|
||||||
if !CONFIG.search_enabled
|
if !CONFIG.search_enabled
|
||||||
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
||||||
haltf env, 400, error_message
|
haltf env, 403, error_message
|
||||||
end
|
end
|
||||||
|
|
||||||
query = Invidious::Search::Query.new(env.params.query, :regular, region)
|
query = Invidious::Search::Query.new(env.params.query, :regular, region)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue