title: nodejs http-proxy not forwarding put requests
body: <p>I've made a proxy using the http-proxy and express middlewares. However, it isn't forwarding PUT requests - which are essential for the application I'm proxying to. What am I doing wrong?</p>
  
  <p>(The purpose of the proxy server is to provide authentication for the app behind the proxy. If there is another way to do this, I'd be grateful to know.)</p>
  
  <pre><code>var proxy = new httpProxy.RoutingProxy();
  var app = express();
  
  app.configure(function() {
  app.set('views', __dirname + '/views');
  app.set('view engine', 'ejs');
  app.engine('ejs', require('ejs-locals'));
  app.use(express.logger());
  app.use(express.cookieParser());
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.session({secret: 'rupert'}));
  app.use(flash());
  app.use(passport.initialize());
  app.use(passport.session());
  app.use(app.router);
  app.use(function(req, res) {
  proxy.proxyRequest(req, res, {
    host: 'localhost',
    port: 8080
  });
  });
  app.use(express.static(__dirname + '/../../public'));
  });
  
  app.get('/login', function(req, res){
    res.render('login', { user: req.user, message: req.flash('error') });
  });
  
  app.post('/login', 
    passport.authenticate('local', { failureRedirect: '/login', failureFlash: true }),
    function(req, res) {
    res.redirect('/');
  });
  
  app.get('/logout', function(req, res){
    req.logout();
    res.redirect('/')
  });
  
  app.all('/*', function(req, res, next) {
    return next();
  });
  
  app.listen(3000,'localhost');
  </code></pre>