Skip to content

Commit

Permalink
Add json:true to node server request
Browse files Browse the repository at this point in the history
  • Loading branch information
ONS-Tom committed Oct 26, 2017
1 parent 20c138f commit 7b95998
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ app.post('/login', (req, res) => {
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Authorization': `${basicAuth}`
}
},
json: true
};
}

Expand Down

0 comments on commit 7b95998

Please sign in to comment.