You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2007/11/27 12:04:43 UTC

[jira] Created: (SLING-112) DefaultSlingServlet.spool sets content/unknown Content-Type for css and js files

DefaultSlingServlet.spool sets content/unknown Content-Type for css and js files
--------------------------------------------------------------------------------

                 Key: SLING-112
                 URL: https://issues.apache.org/jira/browse/SLING-112
             Project: Sling
          Issue Type: Bug
          Components: microsling
            Reporter: Bertrand Delacretaz
            Priority: Minor


$ curl -D - http://localhost:8080/microsling.css

HTTP/1.1 200 OK
Content-Type: content/unknown
Content-Length: 676
Last-Modified: Mon, 19 Nov 2007 15:11:45 GMT
Server: Jetty(6.1.5)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SLING-112) DefaultSlingServlet.spool sets content/unknown Content-Type for css and js files

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz resolved SLING-112.
---------------------------------------

    Resolution: Fixed

Fixed in revision 598596, corresponding integration test added.

DefaultSlingServlet used URLConnection.getContentType(), which apparently doesn't know about js and css files (at least on my macosx/JDK1.5 system). Changed to use the servlet context to get the content type.

> DefaultSlingServlet.spool sets content/unknown Content-Type for css and js files
> --------------------------------------------------------------------------------
>
>                 Key: SLING-112
>                 URL: https://issues.apache.org/jira/browse/SLING-112
>             Project: Sling
>          Issue Type: Bug
>          Components: microsling
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>
> $ curl -D - http://localhost:8080/microsling.css
> HTTP/1.1 200 OK
> Content-Type: content/unknown
> Content-Length: 676
> Last-Modified: Mon, 19 Nov 2007 15:11:45 GMT
> Server: Jetty(6.1.5)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.