fixed issue with media_type not being set on POST requests for forms