Skip to content

Commit

Permalink
Prepared new release
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Jan 31, 2024
1 parent 3b6e1e9 commit 6da93d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"label": "pollInterval",
"newLine": true,
"min": 5,
"max": 300
"max": 300,
"default": 10,
"sm": 6,
"md": 4,
"lg": 3
},
"logResponse": {
"type": "checkbox",
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Jablotron extends utils.Adapter {
this.log.debug('Fetching new session id');
const response = await axios.post(url, data, { headers: requestHeader });
if (this.config.logResponse) this.log.debug('Response-Header: ' + JSON.stringify(response.headers));
if (response.headers && response.headers.has('Set-Cookie')) {
if (response.headers && response.headers.has('set-cookie')) {
const cookie = response.headers['set-cookie'];
if (cookie) {
this.log.info('Logged in to jablonet api');
Expand Down

0 comments on commit 6da93d1

Please sign in to comment.