Skip to content

Commit

Permalink
update path test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jan 15, 2012
1 parent ffa77ae commit 5bcdba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -4,6 +4,7 @@ var parsley = require('parsley');
var BufferedStream = require('morestreams').BufferedStream;

var insertHeaders = require('./lib/insert_headers');
var updatePath = require('./lib/update_path');
var parseArgs = require('./lib/parse_args');

var net = require('net');
Expand Down Expand Up @@ -85,6 +86,7 @@ function makeBounce (bs, client, req) {
}

insertHeaders(bs.chunks, opts.headers);
if (opts.path) updatePath(bs.chunks, opts.path);

if (stream.writable && client.writable) {
bs.pipe(stream);
Expand Down

0 comments on commit 5bcdba4

Please sign in to comment.