Skip to content

req_body_form() sets req to an empty list#836

Merged
hadley merged 2 commits into
r-lib:mainfrom
arcresu:empty_form
Mar 3, 2026
Merged

req_body_form() sets req to an empty list#836
hadley merged 2 commits into
r-lib:mainfrom
arcresu:empty_form

Conversation

@arcresu

@arcresu arcresu commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Ensures that when req$body$data is NULL, an empty list is used instead. Note that this is exactly what is done already a few lines above for req_body_json_modify() which is conceptually doing the same thing.

Fixes #835.

@hadley

hadley commented Mar 3, 2026

Copy link
Copy Markdown
Member

Thanks! Can you please add a bullet to the top of NEWS.md? It should briefly describe the change and end with (@yourname, #issuenumber).

@arcresu

arcresu commented Mar 3, 2026

Copy link
Copy Markdown
Contributor Author

Done!

@hadley hadley merged commit 43e0d28 into r-lib:main Mar 3, 2026
10 of 11 checks passed
@hadley

hadley commented Mar 3, 2026

Copy link
Copy Markdown
Member

Thank you!

@arcresu arcresu deleted the empty_form branch March 3, 2026 22:19
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.

Request with empty form data fails

2 participants