Skip to content

Commit

Permalink
Merge pull request #161 from denoland/fix-redirect-code
Browse files Browse the repository at this point in the history
fix: HTTP redirect status code
  • Loading branch information
iuioiua authored May 4, 2023
2 parents 92fe2b4 + 09fcee6 commit 92b93d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/account/display-name.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const handler: Handlers<DisplayNamePageData, AccountState> = {
await setUserDisplayName(ctx.state.session.user.id, displayName);
return new Response(null, {
headers: { location: "/account" },
status: 307,
status: 303,
});
} catch (error) {
return new Response(null, {
Expand All @@ -48,7 +48,7 @@ export const handler: Handlers<DisplayNamePageData, AccountState> = {
encodeURIComponent(error.message)
}`,
},
status: 307,
status: 303,
});
}
},
Expand Down

0 comments on commit 92b93d4

Please sign in to comment.