Skip to content

Allow variable body for fileRequest()#199

Open
CorrectRoadH wants to merge 1 commit into
electrikmilk:mainfrom
CorrectRoadH:fix-filerequest-variable-body
Open

Allow variable body for fileRequest()#199
CorrectRoadH wants to merge 1 commit into
electrikmilk:mainfrom
CorrectRoadH:fix-filerequest-variable-body

Conversation

@CorrectRoadH

Copy link
Copy Markdown
Contributor

Split out from #192 as an unrelated change.

fileRequest() sends a file as the request body, so its body argument should accept a variable (e.g. a file reference) rather than requiring a literal dictionary. This loosens the body parameter from dictionary! to variable to match how the action is actually used.

Verified with go build ./... and go test -run TestCherriNoSign.

fileRequest() sends a file as the request body, so its body argument
should accept a variable (e.g. a file reference) rather than requiring
a literal dictionary. Loosen the body parameter from `dictionary!` to
`variable` to match how the action is actually used.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Xvr9ByAkYxnM3SJjBw9T9
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.

1 participant