You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
402 B

8 years ago
  1. ## mime-types
  2. You can set additional mime-type/extension mappings, or override the defaults by setting a `mime` value in the stored config. This value is passed directly to [mime.define()](https://github.com/broofa/node-mime#mimedefine). Example:
  3. ```json
  4. {
  5. "mime": {
  6. "text/plain": [ "php", "pl" ]
  7. }
  8. }
  9. ```
  10. [Example](https://github.com/75lb/local-web-server/tree/master/example/mime-override).