mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #13] [MERGED] fix: send multipart content_type before the file part on asset upload #23
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/13
Author: @wei-hai
Created: 7/22/2026
Status: ✅ Merged
Merged: 7/22/2026
Merged by: @wei-hai
Base:
main← Head:fix/multipart-order-and-notfound📝 Commits (2)
f672d36fix: send multipart content_type before the file part on asset upload60a8cc1fix: map entity-specific 404 codes (job/asset_not_found) to NotFound📊 Changes
5 files changed (+33 additions, -1 deletions)
View changed files
📝
src/low/errors.test.ts(+2 -0)📝
src/low/errors.ts(+5 -0)📝
src/low/transport.test.ts(+7 -0)📝
src/low/transport.ts(+5 -1)📝
test/support/stub-server.ts(+14 -0)📄 Description
Asset upload against public-api failed with:
public-api streams the multipart upload and needs
content_type(and the other metadata fields) to arrive before thefilepart so it can route the file stream without buffering.postAssetsappendedfilefirst.Fix: append the metadata fields (
content_type,file_path,expected_hash,tags) first andfilelast. The stub server now rejects afile-before-content_typebody (mirroring public-api), so the existingpostAssetstests guard against a regression.vitest112/112,tsc/oxfmt/hygiene clean.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.