Permalink
Browse files

Add 'host' header to connection objects

This makes it possible to use a single SockJS server with multiple
virtual hosts (that each might have unique logic).
  • Loading branch information...
1 parent 14dbe16 commit 8b03b3b1e7be14ee5746847f517029cb3ce30ca7 @jcheng5 jcheng5 committed Dec 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/transport.coffee
@@ -130,7 +130,7 @@ class Session
headers = {}
for key in ['referer', 'x-client-ip', 'x-forwarded-for', \
- 'x-cluster-client-ip', 'via', 'x-real-ip']
+ 'x-cluster-client-ip', 'via', 'x-real-ip', 'host']
headers[key] = req.headers[key] if req.headers[key]
if headers
@connection.headers = headers

0 comments on commit 8b03b3b

Please sign in to comment.