Changeset

5194:25041e15994e

mod_http_oauth2: Comment on mutation by other module
author Kim Alvefur <zash@zash.se>
date Fri, 03 Mar 2023 21:45:05 +0100
parents 5193:2bb29ece216b
children 5195:b4932915e773
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;