jQuery ajax content-type clarification

1

What would be the difference / utility to use:

beforeSend: function(jqXHR) {
   jqXHR.overrideMimeType('text/plain; charset=iso-8859-1')
}

and contentType: 'text/plain; charset=iso-8859-1' , and the contentType just does not work.

According to the jQuery documentation, it should work.

    
asked by anonymous 23.03.2016 / 17:08

0 answers