Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
forward auth headers!
Browse files Browse the repository at this point in the history
  • Loading branch information
zaach committed Dec 21, 2012
1 parent 6c792b0 commit 48c503e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/http_forward.js
Expand Up @@ -87,9 +87,8 @@ exports.forward = function(dest, req, res, cb) {
if (req.headers['if-none-match']) {
preq.setHeader('If-None-Match', req.headers['if-none-match']);
}

if (req.headers['user-agent'] && '/wsapi/interaction_data' === req.path) {
preq.setHeader('User-Agent', req.headers['user-agent']);
if (req.headers['authorization']) {
preq.setHeader('Authorization', req.headers['authorization']);
}

// if the body has already been parsed, we'll write it
Expand Down

0 comments on commit 48c503e

Please sign in to comment.