Skip to content

Commit f8ca7f2

Browse files
authored
chore: empty payload in info requests to agent (#5245)
This change ensures that we send an empty payload to the agent when performing info requests, to conform with what the system tests expect.
1 parent 58017b1 commit f8ca7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddtrace/internal/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def info():
153153
agent_url = get_trace_url()
154154
_conn = get_connection(agent_url, timeout=get_trace_agent_timeout())
155155
try:
156-
_conn.request("GET", "info", "{}", {"content-type": "application/json"})
156+
_conn.request("GET", "info", headers={"content-type": "application/json"})
157157
resp = _conn.getresponse()
158158
data = resp.read()
159159
finally:

0 commit comments

Comments
 (0)