Some server may return Content-Type: application/json header, but don't send any body.
This leads to failed JSON.parse.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] I have updated the documentation accordingly. If you are changing code related to user secrets you need to really make sure that security documentation is correct.
Description
Skip body handling for 204 responses
Motivation and Context
Some server may return
Content-Type: application/json
header, but don't send any body. This leads to failed JSON.parse.Types of changes
Checklist: