chomp makes the baby ruby cry

chomp was causing an error during my test:

curl -d '{ "ref": "refs/heads/production" }'  -H "Accept: application/json" 'http://puppet:puppet@<master>:8088/payload' -k -q
NoMethodError: undefined method `chomp' for nil:NilClass

changing 'chomp' to 'to_s' corrected the problem and resulted in a successful test:

curl -d '{ "ref": "refs/heads/production" }'  -H "Accept: application/json" 'http://puppet:puppet@<master>:8088/payload' -k -q
{"status":"success","message":"triggered: mco r10k deploy _production -p"}