Skip to content

Multipart no content - #25

Open
martynp wants to merge 2 commits into
mainfrom
multipart-no-content
Open

martynp wants to merge 2 commits into
mainfrom
multipart-no-content

Conversation

@martynp

@martynp martynp commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The changelog moves an unrelated feature out of its previously recorded release.

1 open issue
What changed in this PR

Preserves multipart upload bytes when a file part omits Content-Type.

Changes:

  • Treats filename-bearing parts as data, defaulting to application/octet-stream.
  • Adds regression coverage for byte preservation.
  • Updates form documentation and release notes.
File Description
core/​lib/​tests/​multipart-no-content-type-issue-2934.rs Tests byte preservation and binary fallback.
core/​lib/​src/​fs/​temp_file.rs Documents fallback content type.
core/​lib/​src/​form/​parser.rs Classifies filename-bearing parts as data.
core/​lib/​src/​form/​from_form.rs Updates field classification documentation.
core/​lib/​src/​form/​field.rs Documents data fields and binary fallback.
CHANGELOG.md Records the multipart fix under Unreleased.

Review effort: Balanced

Comment thread CHANGELOG.md
Comment on lines +8 to +24
## Unreleased

### Added

- Built-in WebSocket support behind rkt's optional `ws` feature, available as
`rkt::ws`. The `rkt_ws` crate remains a deprecated compatibility shim for one
full minor release cycle.

### Fixed

- Multipart file parts sent without a `Content-Type` are no longer corrupted by
UTF-8 decoding. A part with a `filename` is now treated as data, defaulting to
`application/octet-stream`.

## 1.2.0 - 2026-07-29

### Added
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.

2 participants