@nestjs/platform-express 10.0.4 → 10.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -53,7 +53,7 @@ class ExpressAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
if (response.getHeader('Content-Type') !== undefined &&
|
|
56
|
-
response.getHeader('Content-Type')
|
|
56
|
+
!response.getHeader('Content-Type').startsWith('application/json') &&
|
|
57
57
|
body?.statusCode >= common_1.HttpStatus.BAD_REQUEST) {
|
|
58
58
|
this.logger.warn("Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses");
|
|
59
59
|
response.setHeader('Content-Type', 'application/json');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-express",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.5",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-express)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"tslib": "2.6.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@nestjs/common": "10.0.
|
|
29
|
-
"@nestjs/core": "10.0.
|
|
28
|
+
"@nestjs/common": "10.0.5",
|
|
29
|
+
"@nestjs/core": "10.0.5"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@nestjs/common": "^10.0.0",
|