Skip to content

Commit

Permalink
uppercase method in template (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Harris authored Apr 18, 2021
1 parent cdf4d5b commit 112d194
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ninety-singers-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Uppercase method in template
2 changes: 1 addition & 1 deletion packages/create-svelte/templates/default/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const handle: Handle = async ({ request, render }) => {
// TODO https://github.com/sveltejs/kit/issues/1046
const response = await render({
...request,
method: request.query.get('_method') || request.method
method: (request.query.get('_method') || request.method).toUpperCase()
});

const { is_new, userid } = request.context;
Expand Down

1 comment on commit 112d194

@vercel
Copy link

@vercel vercel bot commented on 112d194 Apr 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.