pl-fe: fetching head has bad compatibility, actually

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-06-01 20:49:01 +02:00
parent 8f990f243c
commit 6c483ba90c

View File

@ -46,7 +46,7 @@ interface StandaloneCheckSuccessAction {
}
const checkIfStandalone = () => (dispatch: AppDispatch) =>
staticFetch('/api/v1/instance', { method: 'HEAD' })
staticFetch('/api/v1/instance', { method: 'GET' })
.then(({ ok, headers }) => dispatch<StandaloneCheckSuccessAction>({ type: STANDALONE_CHECK_SUCCESS, ok: ok && !!headers.get('content-type')?.includes('application/json') }))
.catch((err) => dispatch<StandaloneCheckSuccessAction>({ type: STANDALONE_CHECK_SUCCESS, ok: err.response?.ok }));