fix: add Content-Type header to ensurePowerToolsTag POST request
This commit is contained in:
1 parent
4e867f7691
commit
8dbef1e1b1
1 file changed
+4
-1
@@ -26,7 +26,10 @@ export const ensurePowerToolsTag = async (headers: HeadersRecord) => {
|
||||
|
||||
const createResponse = await fetch(`${ENV.IMMICH_URL}/api/tags`, {
|
||||
method: "POST",
|
||||
headers,
|
||||
headers: {
|
||||
...headers,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ name: POWER_TOOLS_TAG_NAME }),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user