const proxy = require('../proxy')
const permute = require('../../../helpers/permute')

module.exports = function (opts, req, socket, head, done) {
  var target = opts.balance || opts.target

  if (Array.isArray(target)) {
    target = permute(target)
  }

  // to do: support balance
  if (!target) return done(new Error('Missing target URI'))

  proxy(opts, req, socket, head, done)
}

@@ -253,36 +253,8 @@
  %7D%0A%0A
-  // to do: support balance%0A
   if

remove invalid comment