Skip to content

Commit 8cbc00f

Browse files
committed
Force request to send body as string, this ensures headers aren't automatically set to application/json
- strongloop#944
1 parent 9a269cb commit 8cbc00f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/user.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('User', function() {
255255
.set('Content-Type', null)
256256
.expect('Content-Type', /json/)
257257
.expect(400)
258-
.send(validCredentials)
258+
.send(JSON.stringify(validCredentials))
259259
.end(function(err, res) {
260260
if (err) {
261261
return done(err);

0 commit comments

Comments
 (0)