Skip to content

Commit

Permalink
fix: Return the result in JsonBodyParser.parseString
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzbilgener committed Jun 11, 2020
1 parent 03fbe22 commit 8b7f5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bodyParsers/JsonBodyParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class JsonBodyParser implements MimeTypeParser {
}

parseString(value: string) {
JSON.parse(value);
return JSON.parse(value);
}

parseReq(req: http.IncomingMessage, res: http.ServerResponse, done: Callback<void>): void {
Expand Down

0 comments on commit 8b7f5dd

Please sign in to comment.