Skip to content

Commit

Permalink
Fix hanging and timeout request for POST requests with body
Browse files Browse the repository at this point in the history
  • Loading branch information
aaira-a committed Dec 31, 2018
1 parent 71753f9 commit 0e3fa67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExpressFunctionApp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const bodyParser = require("body-parser");
const path = require("path");
const app = express();

app.use(bodyParser.json());
app.use(bodyParser.json({ type: 'application/*+json' }));
app.use(bodyParser.text());

app.get("/api/hello", (req, res) => {
Expand Down

0 comments on commit 0e3fa67

Please sign in to comment.