Skip to content

fix(submit): reject malformed form data - #144

Open
rissrice2105-agent wants to merge 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/submit-invalid-form-data
Open

fix(submit): reject malformed form data#144
rissrice2105-agent wants to merge 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/submit-invalid-form-data

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • parse submission form data through a small guarded helper
  • return a JSON 400 response for unsupported or malformed form bodies
  • cover unsupported content types, malformed multipart, and valid forms

Fixes #143

Testing

  • pnpm test (131 tests)
  • pnpm typecheck
  • pnpm lint (0 errors; 7 pre-existing warnings)

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.

/api/submit returns 500 for malformed form data

1 participant