Removing request Content-Type dependency

I know it's a Flask design flow, discerning, for example, a form post from a one in JSON, and I will definitely ask to the author to change it, but I think it's very easy and clean using an iterator to expose this functionality.