Skip to content

Avoid sending empty JSON body when no params to api command - #6775

Merged
mislav merged 2 commits into
trunkfrom
api-empty-params
Dec 22, 2022
Merged

mislav merged 2 commits into
trunkfrom
api-empty-params

Conversation

@mislav

@mislav mislav commented Dec 22, 2022

Copy link
Copy Markdown
Contributor

Allows e.g. HTTP DELETE requests with an empty body instead of body being {} when no params were given.

This is a backwards incompatible change, but I am unaware of GitHub API endpoints that require an empty payload of {} and do not accept an empty request body instead.

Fixes #3937

@mislav
mislav requested a review from a team as a code owner December 22, 2022 20:18
@mislav
mislav requested review from samcoe and removed request for a team December 22, 2022 20:18
@mislav
mislav merged commit 6a55324 into trunk Dec 22, 2022
@mislav
mislav deleted the api-empty-params branch December 22, 2022 20:45
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.

Allow nil request body for non-GET request

2 participants