Skip to content

Commit

Permalink
Force request to send body as string, this ensures headers aren't aut…
Browse files Browse the repository at this point in the history
…omatically set to application/json

 - strongloop#944
  • Loading branch information
greaterweb committed Dec 22, 2014
1 parent 9a269cb commit 8cbc00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/user.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ describe('User', function() {
.set('Content-Type', null)
.expect('Content-Type', /json/)
.expect(400)
.send(validCredentials)
.send(JSON.stringify(validCredentials))
.end(function(err, res) {
if (err) {
return done(err);
Expand Down

0 comments on commit 8cbc00f

Please sign in to comment.