We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
want to change some of the file's mime type, is there any api? or just interpolate node response?
The text was updated successfully, but these errors were encountered:
Currently no.. but PR #184 would allow something like this:
var file = new static.Server('./public'); require('http').createServer(function (request, response) { request.addListener('end', function () { response.setHeader('Content-Type', 'text/html') // explicitly override content type here file.serve(request, response); }).resume(); }).listen(8080);
Sorry, something went wrong.
Actually this issue is a dupe of #169
No branches or pull requests
want to change some of the file's mime type, is there any api? or just interpolate node response?
The text was updated successfully, but these errors were encountered: