Skip to content

Commit

Permalink
Fixed typo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DEV2DEV-DE committed Jan 27, 2024
1 parent 94757b9 commit dc623b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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.includes('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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.jablotron",
"version": "0.1.1",
"version": "0.1.2",
"description": "Connects to the Jablotron cloud to access your security system",
"author": {
"name": "DEV2DEV-DE",
Expand Down

0 comments on commit dc623b9

Please sign in to comment.