Skip to content

Commit 0223125

Browse files
author
Sergei Shevlyagin
committed
additional note
1 parent 737e5b9 commit 0223125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/middlewares.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ await app.listen(3000);
244244
```
245245

246246
#### Default body-praser middleware
247-
The nest application registers `json` and `urlencoded` from the package `body-parser` by default. This can be turned off by setting the `bodyParser` flag when creating the application.
247+
The nest application registers `json` and `urlencoded` from the package `body-parser` by default. This can be turned off by setting the `bodyParser` flag when creating the application. The options used when registering the middleware can be seen in the `registerParserMiddleware` function in the (express)[https://github.com/nestjs/nest/blob/master/packages/platform-express/adapters/express-adapter.ts#L210] and (fastify)[https://github.com/nestjs/nest/blob/master/packages/platform-fastify/adapters/fastify-adapter.ts#L455] adapters.
248248

249249
```typescript
250250
const app = await NestFactory.create(AppModule, {bodyParser: false});

0 commit comments

Comments
 (0)