Skip to content

Commit

Permalink
update decode comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sodawy committed Jan 6, 2018
1 parent a60955a commit a228f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/context.js
Expand Up @@ -113,7 +113,7 @@ class ContextSession {
} catch (err) {
// backwards compatibility:
// create a new session if parsing fails.
// new Buffer(string, 'base64') does not seem to crash
// `Buffer.alloc(size, string, 'base64')` does not seem to crash
// when `string` is not base64-encoded.
// but `JSON.parse(string)` will crash.
debug('decode %j error: %s', cookie, err);
Expand Down

0 comments on commit a228f9b

Please sign in to comment.