Skip to content

Commit 5e38566

Browse files
committed
Add 'X-Requested-By' header to Ambari API requests in functions.py
1 parent cc13dc8 commit 5e38566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mcp_ambari_api/functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ async def make_ambari_request(endpoint: str, method: str = "GET", data: Optional
201201

202202
headers = {
203203
'Authorization': f'Basic {auth_b64}',
204-
'Content-Type': 'application/json'
204+
'Content-Type': 'application/json',
205+
'X-Requested-By': 'ambari'
205206
}
206207

207208
url = f"{AMBARI_API_BASE_URL}{endpoint}"

0 commit comments

Comments
 (0)