<div dir="ltr"><div><div>Hi,<br><br>When I send a POST request with JQuery or with a plan HTML form I see<br></div></div><br>'CONTENT_TYPE' => 'application/x-www-form-urlencoded; charset=UTF-8',<br><div><br></div><div>and the data looks like this:<br><br>'body' => 'foo=23&bar=19',<br><br><br></div><div>If I understand it correctly then this is what Dancer turns into the values accessible via param()<br><br>When I use Angular to send a POST request to the Dancer back-end, by default it send<br><br>'CONTENT_TYPE' => 'application/json;charset=UTF-8',<br><br>and the data looks like this:<br><br>'body' => '{"foo":23,"bar":19}',<br><br></div><div>and Dancer2 does not parse this.<br><br><br></div><div>Shouldn't Dancer2 look at the content type of the POST request and handle the data accordingly?<br></div><div>Or is that the job of PSGI? Do I need to tell something to Dancer2 or to PSGI to do this?<br><br></div><div>regards<br></div><div>   Gabor<br><br></div><div><br><br></div></div>