Skip to content

Commit 8d340d4

Browse files
committed
always set request id
1 parent db1cecf commit 8d340d4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

livekit-api/livekit/api/twirp_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ async def request(
213213
headers["User-Agent"] = _USER_AGENT
214214
forward_headers = dict(headers) # for the discovery fetch (no content-type yet)
215215
headers["Content-Type"] = "application/protobuf"
216-
if not any(h.lower() == REQUEST_ID_HEADER.lower() for h in headers):
217-
headers[REQUEST_ID_HEADER] = str(uuid.uuid4())
216+
headers[REQUEST_ID_HEADER] = str(uuid.uuid4())
218217
serialized_data = data.SerializeToString()
219218

220219
# The effective per-attempt timeout is the per-call override, or the

0 commit comments

Comments
 (0)