fastn-stack / fastn

🚧 (Alpha stage software) fastn - better way to build websites 🚧
https://fastn.com
GNU Affero General Public License v3.0
464 stars 36 forks source link

Added session_id method in Request #1936

Closed Arpita-Jaiswal closed 1 month ago

Arpita-Jaiswal commented 1 month ago

Earlier the session_id method in RequestConfig only read session from request header X-FASTN-ACTOR. Fix this by reading from cookie too. Also moved the logic to Request::session_id method, so that it can be used by hostn::route too.

Related PR: https://github.com/FifthTry/ft/pull/182