fix: enhance error handling for custom headers and improve test coverage for header management

This commit is contained in:
jeetul.samaiya 2025-09-10 21:01:24 +05:30
commit 90ab419d12

View file

@ -137,7 +137,11 @@ const App = () => {
if (savedHeaders) {
try {
return JSON.parse(savedHeaders);
} catch {
} catch (error) {
console.warn(
`Failed to parse custom headers: "${savedHeaders}", will try legacy migration`,
error,
);
// Fall back to migration if JSON parsing fails
}
}