diff --git a/src/exprash.sh b/src/exprash.sh index 1296b98..1dba318 100644 --- a/src/exprash.sh +++ b/src/exprash.sh @@ -206,6 +206,11 @@ function send() { _sendRaw } +function sendJson() { + setHeader 'Content-Type' 'application/json' + send +} + # $1: Path function redirect() { local path="$1"