# HG changeset patch # User Matthew Wild # Date 1451925579 0 # Node ID dd2a570367a91e0461b6428457fa0e09dd95cd19 # Parent d35376a536441ecc27e3f7a2b4e0921129e1c0d0 clients: Set content-type where necessary diff -r d35376a53644 -r dd2a570367a9 clients.lua --- a/clients.lua Mon Jan 04 16:27:00 2016 +0000 +++ b/clients.lua Mon Jan 04 16:39:39 2016 +0000 @@ -110,6 +110,7 @@ function handle_active(event, path) mark_active(event.request); + event.response.headers.content_type = "text/plain"; return "OK"; end @@ -122,6 +123,7 @@ end end mark_active(event.request); + event.response.headers.content_type = "text/plain"; return tostring(total); end @@ -137,6 +139,7 @@ }); end mark_active(event.request); + event.response.headers.content_type = "application/json"; return "[\n "..table.concat(watchers, ",\n ").."\n]"; end