Skip to content

Commit

Permalink
Merge pull request #21 from jessehorne/master
Browse files Browse the repository at this point in the history
suggested fix by 'daurnimator' for issue #8
  • Loading branch information
zedshaw committed Sep 20, 2013
2 parents 91c2592 + 23c9a4c commit 4c1bdfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tir/session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4c1bdfa

Please sign in to comment.