opencomponents / oc-client-browser

The OpenComponents Browser client
MIT License
6 stars 8 forks source link

remove dataType #119

Closed ricardo-devis-agullo closed 1 month ago

ricardo-devis-agullo commented 1 month ago

Remove dataType attribute, since it's not needed (it helps jquery convert to json if the server doesn't reply with the correct content-Type, but oc responds correctly), and creates a bug if parameters have double question mark as stated in their docs

In requests with dataType: "json" or dataType: "jsonp", if the string contains a double question mark (??) anywhere in the URL or a single question mark (?) in the query string, it is replaced with a value generated by jQuery that is unique for each copy of the library on the page (e.g. jQuery21406515378922229067_1479880736745).