release: WRNexusJS 0.4.0
This commit is contained in:
@@ -17,7 +17,7 @@ function safeReturnPath(value: string | null, baseUrl: URL): string {
|
||||
|
||||
export async function POST(ctx: Context): Promise<Response> {
|
||||
const contentType = ctx.req.headers.get("content-type") ?? "";
|
||||
let submittedReturnTo: string | null = null;
|
||||
let submittedReturnTo: string | null;
|
||||
|
||||
if (contentType.includes("application/json")) {
|
||||
const body = (await ctx.req.json().catch(() => ({}))) as Record<string, unknown>;
|
||||
|
||||
Reference in New Issue
Block a user