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