Fix issue when making requests without a body

[#79025838]

Signed-off-by: Derek Richard <drichard@pivotal.io>