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:
parent
301d5079d6
commit
2187987f48
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user