Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 389252

Summary: Projects ending in .js are not served up correctly as a site
Product: [ECD] Orion Reporter: Ken Walker <ken_walker>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon
Version: 0.5   
Target Milestone: 1.0 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Ken Walker CLA 2012-09-11 09:11:13 EDT
One of my demo sites I always use is impress.js from GitHub.  I clone it, make a site, and launch it.  It is a slideshow app.

Now when I do the same set of steps the content of the site is returned with the wrong content type.

If it's NOT a project ending in .js then you get:

text/html;charset=UTF-8

If it IS then you get:

application/x-javascript;charset=UTF-8
Comment 1 Mark Macdonald CLA 2012-09-11 17:36:23 EDT
The code that decides what MIME type to set is looking at the last chunk of the path. It should really be looking at the underlying filename of the Orion file that it's serving up.