Node.js based forum software built for the modern web
@akhoury and his comments.. :p + jshinting
psychobunny066b1c0d64be
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.jsindex b3d36e69b4..59e850a7f7 100644--- a/src/socket.io/posts.js+++ b/src/socket.io/posts.js@@ -15,17 +15,16 @@ var async = require('async'),SocketPosts = {},- // a shy request-wannabe build from a socket for spam detection purposesreqFromSocket = function(socket) {var headers = socket.handshake.headers,- host = headers['host'],- referer = headers['referer'];+ host = headers.host,+ referer = headers.referer;return {ip: headers['x-forwarded-for'] || (socket.handshake.address || {}).address,host: host,- protocol: headers['secure'] ? 'https' : 'http',- secure: !!headers['secure'],+ protocol: headers.secure ? 'https' : 'http',+ secure: !!headers.secure,url: referer,path: referer.substr(referer.indexOf(host) + host.length),headers: headers