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 Jan 5, 2015
1 parent 2438e86 commit 67ed3fd
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 67ed3fd

Please sign in to comment.