Check if the request data is empty

This was observed when sending a POST request and it failing. The
assumption was that a request body was required for a POST/PUT request
which is not the case. See http://stackoverflow.com/q/7323958/407954

Signed-off-by: Byron Ruth <b@devel.io>