We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 219a0cb commit ecf5ac5Copy full SHA for ecf5ac5
core.sh
@@ -479,18 +479,9 @@ writeHttpResponse() {
479
fi
480
result=$(source "pages/${ROUTE_SCRIPT}")
481
CODE=$?
482
- if [[ "$CODE" -lt 64 ]]; then
483
- # for i in "${!HTTP_HEADERS[@]}"; do
484
- # debug "%s=%s" "$i" "${HTTP_HEADERS[$i]}"
485
- # done
486
- respond 200 OK
487
- [[ -z $CUSTOM_HEADERS ]] && header Content-Type "text/html" && end_headers
488
- printf "%s" "$result"
489
- else
490
- respond $(decode_result $CODE)
491
- end_headers
492
493
- fi
+ respond $(decode_result $CODE)
+ [[ -z $CUSTOM_HEADERS ]] && header Content-Type "text/html" && end_headers
+ printf "%s" "$result"
494
}
495
496
findRoutes() {
0 commit comments