提交 a1c1b79a 编写于 作者: D David Graham

Fix form post content type test.

上级 f36e9e40
......@@ -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()
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册