Changeset

5206:31c62df82aa8

mod_http_oauth2: Clarify comment referencing mod_http_errors (thanks MattJ) Must have typed text/plain twice by accident here.
author Kim Alvefur <zash@zash.se>
date Sun, 05 Mar 2023 12:38:20 +0100
parents 5205:b6f41f0b5f58
children 5207:c72e3b0914e8
files mod_http_oauth2/mod_http_oauth2.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sat Mar 04 23:36:13 2023 +0100
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sun Mar 05 12:38:20 2023 +0100
@@ -142,7 +142,8 @@
 	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
+		-- mod_http_errors will set content-type to text/html if it catches this
+		-- event, if not text/plain is kept for the fallback text.
 		local response = { status_code = 200; headers = { content_type = "text/plain" } }
 		response.body = module:context("*"):fire_event("http-message", {
 			response = response;