fix formatting

This commit is contained in:
Emilien
2025-06-14 22:35:11 +02:00
committed by Émilien (perso)
parent cba2adc6ef
commit 1653dd629e
4 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ struct YoutubeConnectionPool
end
# Packages a `HTTP::Client` to an Invidious companion instance alongside the configuration for that instance.
#
#
# This is used as the resource for the `CompanionPool` as to allow the ability to
# proxy the requests to Invidious companion from Invidious directly.
# Instead of setting up routes in a reverse proxy.

View File

@@ -706,7 +706,7 @@ module YoutubeAPI
COMPANION_POOL.client do |wrapper|
companion_base_url = wrapper.companion.private_url.path
wrapper.client.post("#{companion_base_url}#{endpoint}", headers: headers, body: data.to_json) do | response |
wrapper.client.post("#{companion_base_url}#{endpoint}", headers: headers, body: data.to_json) do |response|
response_body = JSON.parse(response.body_io).as_h
end
end