You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add Content-Type header for POST requests made by enhance (#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 <[email protected]>
* 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 <[email protected]>
* fix: Apply suggestions from code review for test files
Co-authored-by: Tee Ming <[email protected]>
* 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 <[email protected]>
Co-authored-by: Tee Ming <[email protected]>
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
0 commit comments