--- a/mod_http_oauth2/mod_http_oauth2.lua Fri Mar 03 21:14:19 2023 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua Fri Mar 03 21:45:05 2023 +0100
@@ -141,6 +141,7 @@
local redirect_uri = get_redirect_uri(client, params.redirect_uri);
if redirect_uri == "urn:ietf:wg:oauth:2.0:oob" then
-- TODO some nicer template page
+ -- mod_http_errors will set content-type to text/plain if it catches this event
local response = { status_code = 200; headers = { content_type = "text/plain" } }
response.body = module:context("*"):fire_event("http-message", {
response = response;