We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10af1dc commit b7fa7c0Copy full SHA for b7fa7c0
src/reait/api.py
@@ -20,6 +20,7 @@
20
re_conf = {
21
"apikey": environ.get("REAI_API_KEY", ""),
22
"host": environ.get("REAI_API_HOST", "https://api.reveng.ai"),
23
+ "user_agent": environ.get("REAI_USER_AGENT", "RevEng.AI Toolkit")
24
}
25
26
@@ -65,7 +66,7 @@ def reveng_req(
65
66
:param files: Dictionary of files to send to the specified URL
67
"""
68
url = f"{re_conf['host']}/{end_point if end_point[0] != '/' else end_point[1:]}"
- headers = {"Authorization": re_conf["apikey"]}
69
+ headers = {"Authorization": re_conf["apikey"], "User-Agent": re_conf["user_agent"]}
70
71
if ex_headers:
72
headers.update(ex_headers)
0 commit comments