(body: string)
| 17 | } |
| 18 | |
| 19 | export function cspForHtml(body: string) { |
| 20 | const match = themePreloadHash(body) |
| 21 | return csp(match ? createHash("sha256").update(match[2]).digest("base64") : "") |
| 22 | } |
| 23 | |
| 24 | function requestBody(request: HttpServerRequest.HttpServerRequest) { |
| 25 | if (request.method === "GET" || request.method === "HEAD") return HttpBody.empty |
no test coverage detected