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