Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix humanitec API header

carlosmonastyrski155e59e571b5
diff --git a/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.ts b/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.ts
index c9a1402cb5..5b22572cc1 100644
--- a/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.ts
+++ b/backend/src/services/secret-sync/humanitec/humanitec-sync-fns.ts
@@ -24,7 +24,7 @@ const getHumanitecSecrets = async (secretSync: THumanitecSyncWithCredentials) =>
const { data } = await request.get<HumanitecSecret[]>(url, {
headers: {
Authorization: `Bearer ${apiToken}`,
- "Accept-Encoding": "application/json"
+ Accept: "application/json"
}
});
@@ -49,7 +49,7 @@ const deleteSecret = async (secretSync: THumanitecSyncWithCredentials, encrypted
await request.delete(url, {
headers: {
Authorization: `Bearer ${apiToken}`,
- "Accept-Encoding": "application/json"
+ Accept: "application/json"
}
});
} catch (error) {
@@ -80,7 +80,7 @@ const createSecret = async (secretSync: THumanitecSyncWithCredentials, secretMap
{
headers: {
Authorization: `Bearer ${apiToken}`,
- "Accept-Encoding": "application/json"
+ Accept: "application/json"
}
}
);
@@ -94,7 +94,7 @@ const createSecret = async (secretSync: THumanitecSyncWithCredentials, secretMap
{
headers: {
Authorization: `Bearer ${apiToken}`,
- "Accept-Encoding": "application/json"
+ Accept: "application/json"
}
}
);
@@ -129,7 +129,7 @@ const updateSecret = async (
{
headers: {
Authorization: `Bearer ${apiToken}`,
- "Accept-Encoding": "application/json"
+ Accept: "application/json"
}
}
);
@@ -145,7 +145,7 @@ const updateSecret = async (
{
headers: {
Authorization: `Bearer ${apiToken}`,
- "Accept-Encoding": "application/json"
+ Accept: "application/json"
}
}
);
@@ -159,7 +159,7 @@ const updateSecret = async (
{
headers: {
Authorization: `Bearer ${apiToken}`,
- "Accept-Encoding": "application/json"
+ Accept: "application/json"
}
}
);