googlearchive / caja

Caja is a tool for safely embedding third party HTML, CSS and JavaScript in your website.
Apache License 2.0
1.13k stars 113 forks source link

Remove extra charset parameter if present #2004

Closed jfparadis closed 7 years ago

jfparadis commented 8 years ago

Caja fails to load resources when the server returns the charset in the content type header.

This header works:

content-type: application/javascript

But this fails without the fix:

content-type: application/javascript; charset=utf-8

In that case, Caja throws an error:

Unimplemented content-type application/javascript; charset=utf-8

googlebot commented 8 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.