Mercurial > prosody-modules
view mod_http_debug/mod_http_debug.lua @ 5365:698fef74ce53
mod_http_oauth2: Allow only l10n variants of name in client metadata
Since "client_name" seems to be the only human readable non-URI property
that makes sense to have localized version of. Therefore it seems
excessive to allow arbitrary additionalProperties.
We don't make use of localized versions of client_name and URIs yet, but
it would be nice to do so.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 25 Apr 2023 17:38:36 +0200 |
parents | 10fcfa7e62a1 |
children | 91564b57e595 |
line wrap: on
line source
local json = require "util.json" module:depends("http") module:provides("http", { route = { GET = function(event) local request = event.request; return { status_code = 200; headers = { content_type = "application/json", }, body = json.encode { body = request.body; headers = request.headers; httpversion = request.httpversion; ip = request.ip; method = request.method; path = request.path; secure = request.secure; url = request.url; } } end; } })