Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set text/css on the stylus route

  • Loading branch information...
commit 17324b74d100a865d48152e5651a1576cce68ed8 1 parent c057dd5
@isaacs isaacs authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  routes/stylus.js
View
1  routes/stylus.js
@@ -10,6 +10,7 @@ function styl (req, res) {
req.url = req.url.replace(/\.css$/, '.styl')
res.filter = new StylusStream()
if (!mount(req, res)) return res.error(404)
+ else res.setHeader('content-type', 'text/css')
}
function StylusStream () {
Please sign in to comment.
Something went wrong with that request. Please try again.