mape / connect-assetmanager

Middleware for Connect (node.js) for handling your static assets.
MIT License
310 stars 48 forks source link

Feature Request: modify mimeType of minified content #45

Open g00d-guy opened 11 years ago

g00d-guy commented 11 years ago

It is sometimes needed to modify document Content-Type of the response. Can you some how modify function serveContent(response) so it will be possible to set custom content-type of the response like this:

assetmanager.js(line: 398) headers['Content-Type'] = response.mimeType || mimeType;