Fix empty post data in ruby