Skip to content

Commit

Permalink
Merge pull request #145 from oguzbilgener/fix-json-parse-string
Browse files Browse the repository at this point in the history
fix: Return the result in `JsonBodyParser.parseString`
  • Loading branch information
jwalton committed Jun 11, 2020
2 parents c93e9fb + 8b7f5dd commit 32f43e1
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 32f43e1

Please sign in to comment.