view host/admin/src/private/tools/request.txt.luan @ 2091:ee7e711a91f2 ssltesting

fix inconsistent usage of DOMAIN/.well-known/acme-challenge and DOMAIN/acme-challenge
author Violet7
date Thu, 11 Dec 2025 20:33:51 -0800
parents 301a6561fb6b
children
line wrap: on
line source

local Binary = require "luan:Binary.luan"
local Io = require "luan:Io.luan"
local Http = require "luan:http/Http.luan"


return function()
	Io.stdout = Http.response.text_writer()
	%><%= Http.request.raw_head %><%
	if Http.request.body ~= nil then
		%><%=Binary.to_string(Http.request.body,"utf-8")%><%
	end
end