NoteController: Do not use text/markdown as response content-type for createNote

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-09-19 15:50:58 +02:00
parent 99f44f2551
commit 2c3a75187e
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -32,7 +32,6 @@ export class NotesController {
* Implementation inspired by https://stackoverflow.com/questions/52283713/how-do-i-pass-plain-text-as-my-request-body-using-nestjs * Implementation inspired by https://stackoverflow.com/questions/52283713/how-do-i-pass-plain-text-as-my-request-body-using-nestjs
*/ */
@Post() @Post()
@Header('content-type', 'text/markdown')
async createNote(@Req() req: Request) { async createNote(@Req() req: Request) {
// we have to check req.readable because of raw-body issue #57 // we have to check req.readable because of raw-body issue #57
// https://github.com/stream-utils/raw-body/issues/57 // https://github.com/stream-utils/raw-body/issues/57