Skip to content

fix(http-server): url encoded handling - #863

Merged
petermasking merged 2 commits into
mainfrom
862-restore-form-data-handling
Nov 21, 2026
Merged

petermasking merged 2 commits into
mainfrom
862-restore-form-data-handling

Conversation

@basmasking

Copy link
Copy Markdown
Member

Fixes #862

@MaskingTechnology/jitar

@basmasking basmasking linked an issue Nov 21, 2026 that may be closed by this pull request
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Summary by CodeRabbit

  • Bug Fixes

    • HTTP requests now accept URL-encoded form data, while JSON request parsing remains supported.
    • POST requests are no longer restricted to JSON content types.
  • Release

    • Updated the project and package versions to 0.13.1.

Walkthrough

The HTTP server now accepts URL-encoded request bodies and no longer rejects POST requests based on content type. JSON parsing remains configured. The root project and package versions change from 0.13.0 to 0.13.1.

Changes

HTTP form parsing release

Layer / File(s) Summary
HTTP request body parsing
packages/http/src/HttpServer.ts, packages/http/package.json
The server keeps JSON parsing with the configured body limit, adds URL-encoded parsing with extended: false, and removes the middleware that rejected POST requests without an application/json content type.
Package version updates
package.json, packages/*/package.json, tools/eslint-plugin/package.json
The root project and package versions change from 0.13.0 to 0.13.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: High · up to 1cf9f

This release restores form-encoded request bodies, but it also removes the check that rejected unsupported content types. A single unauthenticated plain-text POST to the worker report endpoint can now throw an unhandled error and may crash the server. Form bodies also ignore the configured size limit. Restore the content-type rejection and guard the worker report body before merging.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit taps the form with care,
URL-encoded fields now travel there.
JSON parsing stays in place,
New versions mark the release pace.
The POST content check has gone,
And carrots celebrate till dawn.

@sonarqubecloud

Copy link
Copy Markdown

@petermasking
petermasking merged commit 6f9e245 into main Nov 21, 2026
24 of 25 checks passed
@petermasking
petermasking deleted the 862-restore-form-data-handling branch November 21, 2026 23:01
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.

Restore form data handling

2 participants