1 var request = require('../index')
2 , http = require('http')
3 , assert = require('assert')
6 var s = http.createServer(function (req, resp) {
9 }).listen(8080, function () {
10 var r = request('http://localhost:8080', function (e, resp, body) {
11 assert.equal(resp.statusCode, 200)
12 assert.equal(body, "")
14 var r2 = request({ url: 'http://localhost:8080', json: {} }, function (e, resp, body) {
15 assert.equal(resp.statusCode, 200)
16 assert.equal(body, undefined)