Skip to content

Commit

Permalink
Server now sends the correct workspace file content type.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyespo committed Jun 11, 2012
1 parent 5e68400 commit dcec671
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server.coffee
Expand Up @@ -29,7 +29,10 @@ app.get '/', (req, res) ->


app.get '/workspace/*', (req, res) ->
res.send sendFile req.params[0]
path = req.params[0]
contents = sendFile path
res.contentType path
res.send contents


# Helpers
Expand Down

0 comments on commit dcec671

Please sign in to comment.