Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1282

Assets should be streamed with an appropriate content type, even when the container is unable to provide the content type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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".

        Attachments

        1. test.gif
          3 kB
          Daniel Gredler
        2. css-content-type-2.patch
          7 kB
          Daniel Gredler
        3. css-content-type.patch
          0.6 kB
          Daniel Gredler

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              sdanig Daniel Gredler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: