Skip to content

Commit

Permalink
Test request content-type for multipart/form-data
Browse files Browse the repository at this point in the history
  • Loading branch information
simov committed Jul 21, 2015
1 parent 3c94b50 commit 27722fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test-form-data.js
Expand Up @@ -29,6 +29,9 @@ function runTest(t, options) {
}
}

t.ok(/multipart\/form-data; boundary=--------------------------\d+/
.test(req.headers['content-type']))

// temp workaround
var data = ''
req.setEncoding('utf8')
Expand Down
3 changes: 3 additions & 0 deletions tests/test-form.js
Expand Up @@ -21,6 +21,9 @@ tape('multipart form append', function(t) {
return
}

t.ok(/multipart\/form-data; boundary=--------------------------\d+/
.test(req.headers['content-type']))

// temp workaround
var data = ''
req.setEncoding('utf8')
Expand Down

0 comments on commit 27722fe

Please sign in to comment.