Skip to content

Commit

Permalink
fix: get cookie value
Browse files Browse the repository at this point in the history
set version 1.1.3
  • Loading branch information
sanchezzzhak committed Jun 27, 2024
1 parent 28fc635 commit 831ad6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-moleculer-web",
"version": "1.1.2",
"version": "1.1.3",
"description": "Fast web app service for moleculer.js + uWebSockets.js",
"main": "src/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/cookie-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class CookieData {
* @return {null}
*/
get(name, defaultValue = null) {
return this.reqs[name].value ?? defaultValue;
return this.reqs[name]?.value ?? defaultValue;
}

/**
Expand Down

0 comments on commit 831ad6a

Please sign in to comment.