Skip to content
Browse files

Set text/css on the stylus route

  • Loading branch information...
1 parent c057dd5 commit 17324b74d100a865d48152e5651a1576cce68ed8 @isaacs isaacs committed
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 () {

0 comments on commit 17324b7

Please sign in to comment.
Something went wrong with that request. Please try again.