Skip to content

Commit

Permalink
Fix form post content type test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraham committed Nov 1, 2014
1 parent f36e9e4 commit a1c1b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ asyncTest('post sends encoded body', 2, function() {
asyncTest('post sets content-type header', 1, function() {
fetch('/request', {
method: 'post',
body: {}
body: new FormData()
}).then(function(response) {
var request = JSON.parse(response.body);
equal(request.headers['content-type'], 'application/x-www-form-urlencoded; charset=UTF-8')
ok(/^multipart\/form-data;/.test(request.headers['content-type']))
start()
})
})
Expand Down

0 comments on commit a1c1b79

Please sign in to comment.