Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/fix issue with MIME type detection in scraper configuration (#4237)

Miguel Borges de Freitas553c10ac91eb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f75a63fc69..bd9c29aeaa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `date-fns` from version `3.6.0` to `4.1.0`
- Upgraded `rxjs` from version `7.5.6` to `7.8.1`
+### Fixed
+
+- Fixed an issue with the MIME type detection in the scraper configuration
+
## 2.135.0 - 2025-01-19
### Changed
diff --git a/apps/api/src/services/data-provider/manual/manual.service.ts b/apps/api/src/services/data-provider/manual/manual.service.ts
index 108ccbf891..dfda922c60 100644
--- a/apps/api/src/services/data-provider/manual/manual.service.ts
+++ b/apps/api/src/services/data-provider/manual/manual.service.ts
@@ -282,7 +282,7 @@ export class ManualService implements DataProviderInterface {
)
});
- if (response.headers['content-type']?.includes('application/json')) {
+ if (response.headers.get('content-type')?.includes('application/json')) {
const data = await response.json();
const value = String(