Skip to content

Commit a8f01ec

Browse files
committed
express-server-test: Fix proxy tests
node v0.10.42 is rejecting DELETE requests with both Content-Length: 0 and Transfer-Encoding: chunked headers. We can force Content-Length: 0 to work around the problem. see http-party/node-http-proxy#960 and ladjs/superagent#236
1 parent e125054 commit a8f01ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/tasks/server/express-server-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ describe('express-server', function() {
281281
function apiTest(app, method, url, done) {
282282
var req = request(app);
283283
return req[method].call(req, url)
284+
.set('content-length', 0)
284285
.set('accept', 'text/json')
285286
.end(function(err) {
286287
if (err) {

0 commit comments

Comments
 (0)