-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…12198) * test: Add test cases for `enctype` / `formenctype` attributes for `/actions/enhance/` test page * fix: respect `enctype`/`formenctype` HTML form attributes from form + set `application/x-www-form-urlencoded` as a default `Content-Type` for `POST` requests made by `enhance` * chore: Add a new changelog entry * fix: Improve RegEx Co-authored-by: Tee Ming <chewteeming01@gmail.com> * refactor: Use `Headers` class instead of an regular object * Update packages/kit/src/runtime/app/forms.js * fix: Remove unneeded console log from test code Co-authored-by: Tee Ming <chewteeming01@gmail.com> * fix: Apply suggestions from code review for test files Co-authored-by: Tee Ming <chewteeming01@gmail.com> * chore: Linting * test: Check default `ContentType` value for request made by `use:enhance` * test: Remove unneeded test * refactor: Better logic for handling manual `Content-Type` set by `enctype` / `formenctype` * chore: Formatting * chore: Update changeset * Delete .changeset/moody-apricots-kiss.md * separate changesets * cleanup * move closer to other button tests --------- Co-authored-by: Aleksander Grygier <aleksander.grygier@resider.pl> Co-authored-by: Tee Ming <chewteeming01@gmail.com>
- Loading branch information
1 parent
338ee63
commit 8429847
Showing
6 changed files
with
105 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
fix: respect HTML attributes `enctype` and `formenctype` for forms with `use:enhance` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@sveltejs/kit": patch | ||
--- | ||
|
||
fix: set default `Content-Type` header to `application/x-www-form-urlencoded` for `POST` form submissions with `use:enhance` to align with native form behaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters