Skip to content

Commit

Permalink
Support DNT header
Browse files Browse the repository at this point in the history
Alt version of sockjs#212
  • Loading branch information
Slayer95 committed Nov 17, 2016
1 parent 61bba46 commit d2dc1dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transport.coffee
Expand Up @@ -133,6 +133,7 @@ class Session
for key in ['referer', 'x-client-ip', 'x-forwarded-for', \
'x-cluster-client-ip', 'via', 'x-real-ip', \
'x-forwarded-proto', 'x-ssl', \
'dnt', \
'host', 'user-agent', 'accept-language']
headers[key] = req.headers[key] if req.headers[key]
if headers
Expand Down

0 comments on commit d2dc1dd

Please sign in to comment.