You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2007/03/13 03:08:09 UTC
[jira] Updated: (TAPESTRY-1282) Assets should be streamed with an
appropriate content type, even when the container is unable to provide the
content type
[ https://issues.apache.org/jira/browse/TAPESTRY-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-1282:
-------------------------------------------
Component/s: tapestry-core
Fix Version/s: (was: 5.0)
5.0.3
Summary: Assets should be streamed with an appropriate content type, even when the container is unable to provide the content type (was: CSS assets served with incorrect content type)
Thanks for the patch; I've made some minor improvements, such as basing the file extension to content type mapping as a mapped service configuration. Added bonus: you can name for your file FOO.CSS and it still works (mapped configurations where the keys are strings are automatically case insensitive).
> Assets should be streamed with an appropriate content type, even when the container is unable to provide the content type
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1282
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1282
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0
> Reporter: Daniel Gredler
> Assigned To: Howard M. Lewis Ship
> Fix For: 5.0.3
>
> Attachments: css-content-type-2.patch, css-content-type.patch, test.gif
>
>
> In ResourceStreamerImpl#streamResource(Resource), the content type returned for Tapestry's default CSS file is "content/unknown". However, when using a strict HTML 4 doctype, Firefox does not use the CSS rules defined in the file unless the content type is "text/css".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org