update
This commit is contained in:
@@ -31,6 +31,7 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
||||
})
|
||||
|
||||
if (r.status === httpStatus.BAD_REQUEST) {
|
||||
console.log(r)
|
||||
return new Response(null, {
|
||||
status: httpStatus.FOUND,
|
||||
headers: {
|
||||
@@ -44,6 +45,6 @@ export async function loader({ request, context }: Route.LoaderArgs) {
|
||||
headers: r.headers
|
||||
})
|
||||
} catch {
|
||||
return new Response(null, { status: 500 })
|
||||
return new Response(null, { status: httpStatus.INTERNAL_SERVER })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user