Update APIRequest.py to use record.data instead of record.text
This commit is contained in:
parent
1f77b49191
commit
bc37bc9982
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ class APIRequest(CustomComponent):
|
|||
if method not in ["GET", "POST", "PATCH", "PUT"]:
|
||||
raise ValueError(f"Unsupported method: {method}")
|
||||
|
||||
data = record.text if record else None
|
||||
data = record.data if record else None
|
||||
try:
|
||||
response = await client.request(
|
||||
method, url, headers=headers, content=data, timeout=timeout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue