mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: validate accept header before returning html (#27019)
This commit is contained in:
parent
38b135ff36
commit
77020e742a
2 changed files with 10 additions and 3 deletions
|
|
@ -81,7 +81,7 @@ export const connect = async (url: string, key: string) => {
|
|||
|
||||
const [error] = await withError(getMyUser());
|
||||
if (isHttpError(error)) {
|
||||
logError(error, 'Failed to connect to server');
|
||||
logError(error, `Failed to connect to server ${url}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue