Skip to content

Conversation

@Roronoro
Copy link

@Roronoro Roronoro commented Oct 17, 2025

Sorry for the delay.

Here is my suggestion for letting $ajax method accept the same body types as fetch:

  • In the parseFormData() function I added more ifs returning types fetch supports.
  • When building the request object the enctype is set to null if not explicit set otherwise.
  • If enctype is null it is later deleted from the request object. This lets fetch itself decide the enctype.
  • I've added 3 test cases for the Ajax method.

issue #142

@Roronoro Roronoro marked this pull request as ready for review October 17, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant