bugfix: when multiple Content-Type request headers are given, an exception was thrown. now we just pick up the first one.