Thank you @knolleary, that was it.
I still had to keep one of the headers, but the code below works:
var payload = msg.payload;
var data = { 'url': payload.content,'format': 'bestvideo' };
msg.headers = {
'content-type':'application/x-www-form-urlencoded'
}
msg.payload = data;
return msg;