switched up the body a bit, allowing it to be undefined for HEAD and '' for GET