Skip to content

req_body_form() sets req to an empty list#836

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

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

Conversation

@arcresu
Copy link
Contributor

@arcresu arcresu commented Mar 3, 2026

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
Copy link
Member

hadley commented Mar 3, 2026

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
Copy link
Contributor Author

arcresu commented Mar 3, 2026

Done!

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

hadley commented Mar 3, 2026

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