fix #436 content-type header for asyncFormSubmit

A condition is added if enctype is defined in the form the content-type header will be set.