Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/livepeer_gateway/live_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ async def call_runner(

``application/json`` and ``+json`` types parse into ``result.data``; anything else
(an image, ndjson) comes back unparsed in ``result.content`` + ``result.content_type``.

The request asks for no particular format, so the app picks what it returns.
"""
runner_url = runner_url.strip() or (runner.url.strip() if runner is not None else "")
if not runner_url:
Expand All @@ -761,7 +763,9 @@ async def call_runner(
payment_session: LivePaymentSession | None = None
payment_type = ""
session_id = ""
request_headers: dict[str, str] = {}
# No preferred format: the app, or the upstream it fronts, picks. Only
# control-plane calls ask for JSON.
request_headers: dict[str, str] = {"Accept": "*/*"}
if signer_url:
request_headers[_LIVE_RUNNER_PAYER_ADDRESS_HEADER] = payer_address
# Pending challenge means payment is needed.
Expand Down
Loading