Skip to content

Commit 0178321

Browse files
committed
fix getconfig.cgi Content-Type Header (#108)
1 parent c06014d commit 0178321

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

addon_files/redmatic/www/getconfig.cgi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
source ../lib/querystring.tcl
44
source ../lib/session.tcl
55

6+
puts "Content-Type: text/plain\n"
7+
68
if {[info exists sid] && [check_session $sid]} {
79
set fp [open "/usr/local/addons/redmatic/etc/settings.json" r]
8-
puts "Content-Type: text/json\n"
910
puts -nonewline [read $fp]
1011
close $fp
1112
} else {
12-
puts "Content-Type: text/plain\n"
1313
puts {error: invalid session}
1414
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redmatic",
3-
"version": "1.9.8",
3+
"version": "1.9.9",
44
"description": "Node-RED packaged as Homematic CCU addon",
55
"repository": "github:hobbyquaker/redmatic",
66
"private": true,

0 commit comments

Comments
 (0)