Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement missing multipart/form-data handling in auth-next's service-worker-sessions. #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tyshgc
Copy link

@tyshgc tyshgc commented Oct 16, 2023

What steps will reproduce the problem:

  1. Start the service worker session in the auth-next snippet.
  2. Attempt to upload a file using a form with enctype="multipart/form-data".
  3. Observe that the session does not handle the multipart/form-data POST request correctly.

What is the expected result?

The service worker session should correctly handle multipart/form-data encoded forms, parsing the file input and passing it along to the server without issues.

What happens instead of that?

The service worker cannot process the multipart/form-data content type and returns buffer information in the body as text data.

The file upload succeeds, but the file is corrupted due to this.

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.

None yet

1 participant