Skip to content

CSS content generated by less/stylus preprocessor will serve content-type: application/javascript #843

Closed
@chriswong

Description

  1. the css content was process with preprocessor, such as karma-less-preprocessor
  2. karma/lib/preprocessor takes '.js' as suffix of file.contentPath in line 63.
  3. karma/lib/middleware/common line 39, mime.lookup with file.contentPath
  4. as the result of above, a requestUrl like /base/css/a.css, the content-type will response as 'application/javascript'

i'll send a pull request to fix it.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions