Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337389 - [server] HTTP GET on Workspace files are sent with no content-type
Summary: [server] HTTP GET on Workspace files are sent with no content-type
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 M2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 22:41 EST by Simon Kaegi CLA
Modified: 2012-01-16 16:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Kaegi CLA 2011-02-16 22:41:10 EST
Files sent via GenericFileHandler are sent without setting a content type header. The browsers are pretty good at guessing however we should make an attempt to set the content type. One easy way to do this is with help from ServletContext.getMimeType(path)

Take a look at org.eclipse.equinox.http.servlet.internal.ResourceServlet for an example.