Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#bug_29 - fixed 'script sent with wrong MIME type' #60

Closed
wants to merge 1 commit into from
Closed

#bug_29 - fixed 'script sent with wrong MIME type' #60

wants to merge 1 commit into from

Conversation

vidurangaw
Copy link
Contributor

Signed-off-by: Viduranga Wijesooriya [email protected]

@@ -12,6 +12,8 @@
* @lastModified 2013.0120
*/

header('Content-Type: text/javascript; charset=UTF-8');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the reason for this to be of "text/javascript" content-type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Because I thought that's correct content-type according to #29
"Resource interpreted as Script but transferred with MIME type text/html"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Triune : Any thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ravihansa3000
Copy link
Contributor

I don't think setting "text/javascript" content-type in the index.php is the correct approach to solve this. You need to isolate which part of the script is generating this warning. My guess is that xst module is causing this issue.

@vidurangaw
Copy link
Contributor Author

Yes I got it. Thank you. I have made new pull request #67

@vidurangaw vidurangaw closed this Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants