Permalink
Browse files

Merge pull request #21 from jessehorne/master

suggested fix by 'daurnimator' for issue #8
  • Loading branch information...
zedshaw committed Sep 20, 2013
2 parents 91c2592 + 23c9a4c commit 4c1bdfa5b421e8eb9d3724928055da2728130d40
Showing with 3 additions and 3 deletions.
  1. +3 −3 tir/session.lua
@@ -52,9 +52,9 @@ end
function parse_session_id(cookie)
if not cookie then return nil end

local cookie = parse_http_cookie(cookie)

return cookie.session[1]
local session_cookie = parse_http_cookie(cookie).session
return session_cookie and session_cookie[1] or nil

end


0 comments on commit 4c1bdfa

Please sign in to comment.