Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ async function handleFetchResponse(response) {

// Check content type
const contentType = response.headers.get('content-type');
if (!contentType || !contentType.includes('application/json')) {
debugLog('Response is not JSON, session likely expired');
if (!contentType || (!contentType.includes('application/json') && !contentType.includes('text/csv'))) {
debugLog('Response is not JSON or CSV, session likely expired');
window.location.href = joinPath('login');
return null;
}
Expand Down
Loading