Skip to content

Commit

Permalink
fix: accept request's body which content-type is application/x-www-fo…
Browse files Browse the repository at this point in the history
…rm-urlencoded
  • Loading branch information
LanceGin committed Oct 23, 2018
1 parent 745e3b4 commit 55d6835
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/utils/serverService.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default class serverService {
*/
static parseBody(service, formData) {
service.use(bodyParser.json());
service.use(bodyParser.urlencoded({ extended: true }));
service.all('/*', formData.array());
}

Expand Down

0 comments on commit 55d6835

Please sign in to comment.