You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by wt...@apache.org on 2016/01/12 20:18:29 UTC

svn commit: r1724304 - /myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js

Author: wtlucy
Date: Tue Jan 12 19:18:29 2016
New Revision: 1724304

URL: http://svn.apache.org/viewvc?rev=1724304&view=rev
Log:
MYFACES-4025 Incorrect JS content-type

Modified:
    myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js

Modified: myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js?rev=1724304&r1=1724303&r2=1724304&view=diff
==============================================================================
--- myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js (original)
+++ myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js Tue Jan 12 19:18:29 2016
@@ -398,7 +398,7 @@ if (!myfaces._impl.core._Runtime) {
             xhr.open("GET", src, false);
 
             if (charSet) {
-                xhr.setRequestHeader("Content-Type", "application/x-javascript; charset:" + charSet);
+                xhr.setRequestHeader("Content-Type", "text/javascript; charset:" + charSet);
             }
 
             xhr.send(null);