old_contents: 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)
  }
  
new_contents: 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)
    }
  
    if (!target) return done(new Error('Missing target URI'))
  
    proxy(opts, req, socket, head, done)
  }
  
subject: remove invalid comment