1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Fix errorcode status

This commit is contained in:
Jan Schneider 2020-01-06 21:12:54 +01:00
parent 301d5079d6
commit 2187987f48

View File

@ -234,7 +234,7 @@ variable content_type "application/json"
if [catch {process} result] { if [catch {process} result] {
set status 500 set status 500
if { $errorCode != "NONE" } { if { [regexp {^\d+$} $errorCode ] } {
set status $errorCode set status $errorCode
} }
puts "Content-Type: ${content_type}" puts "Content-Type: ${content_type}"