Skip to content

Commit

Permalink
Merge branch 'r1504'
Browse files Browse the repository at this point in the history
  • Loading branch information
denlapaev committed Apr 8, 2015
2 parents c7ba5b6 + eee4cf1 commit c3452ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request/xdrProxy.coffee
Expand Up @@ -49,7 +49,7 @@ define [
proxyReq = protocol.request options, (proxyRes) ->
# send http-headers back to the browser copying them from the target server response
headers = proxyRes.headers
headers['X-Target-Host'] = options.hostname
headers['X-Target-Host'] = options.hostname if not proxyRes.headers['X-Target-Host']? and not proxyRes.headers['x-target-host']?
res.writeHead proxyRes.statusCode, proxyRes.headers
# read all data from the target server response and pass it to the browser response
proxyRes.on 'data', (chunk) -> res.write(chunk)
Expand Down

0 comments on commit c3452ed

Please sign in to comment.