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 b174c0b0ab
commit 56817c3f91
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
*/
@Post()
@Header('content-type', 'text/markdown')
async createNote(@Req() req: Request) {
// we have to check req.readable because of raw-body issue #57
// https://github.com/stream-utils/raw-body/issues/57