Skip to content

Write a file under JSON as base64 - #110

Merged
ivmorski merged 1 commit into
mockzilla:mainfrom
ivmorski:write-file-under-json
Oct 9, 2026
Merged

ivmorski merged 1 commit into
mockzilla:mainfrom
ivmorski:write-file-under-json

Conversation

@ivmorski

@ivmorski ivmorski commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

A runtime.File response body went out as raw bytes, even under application/json. Clients read that body as a base64 JSON string, so they failed. Now a file under JSON is written as base64. A nil file pointer also panicked; it now writes no body.

@ivmorski
ivmorski merged commit 46e654f into mockzilla:main Oct 9, 2026
2 checks passed
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