# HG changeset patch # User Kim Alvefur # Date 1678016300 -3600 # Node ID 31c62df82aa8bf9f4cca697bc7e55e9867c6a4db # Parent b6f41f0b5f58b70b6bf13cad24b639435dcc66ae mod_http_oauth2: Clarify comment referencing mod_http_errors (thanks MattJ) Must have typed text/plain twice by accident here. diff -r b6f41f0b5f58 -r 31c62df82aa8 mod_http_oauth2/mod_http_oauth2.lua --- 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;