mastercontroller 1.3.33 → 1.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mastercontroller",
3
- "version": "1.3.33",
3
+ "version": "1.3.34",
4
4
  "description": "Fortune 500 ready Node.js MVC framework with enterprise security, monitoring, and horizontal scaling",
5
5
  "main": "MasterControl.js",
6
6
  "license": "MIT",
@@ -238,7 +238,7 @@ class SessionSecurity {
238
238
  * Parse session cookie from request
239
239
  */
240
240
  _parseCookie(req) {
241
- const cookies = req.headers.cookie;
241
+ const cookies = req?.headers?.cookie;
242
242
  if (!cookies) return null;
243
243
 
244
244
  const match = cookies.match(new RegExp(`${this.cookieName}=([^;]+)`));