Another copy of my dotfiles. Because I don't completely trust GitHub.
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.

40 lines
1.1 KiB

  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #define BUFFER_SIZE 4096
  4. #define FIELD_MAX 200
  5. /* mime-types */
  6. static const struct {
  7. char *ext;
  8. char *type;
  9. } mimes[] = {
  10. { "xml", "application/xml; charset=utf-8" },
  11. { "xhtml", "application/xhtml+xml; charset=utf-8" },
  12. { "html", "text/html; charset=utf-8" },
  13. { "js", "text/javascript; charset=utf-8" },
  14. { "htm", "text/html; charset=utf-8" },
  15. { "css", "text/css; charset=utf-8" },
  16. { "txt", "text/plain; charset=utf-8" },
  17. { "md", "text/plain; charset=utf-8" },
  18. { "c", "text/plain; charset=utf-8" },
  19. { "h", "text/plain; charset=utf-8" },
  20. { "gz", "application/x-gtar" },
  21. { "tar", "application/tar" },
  22. { "pdf", "application/x-pdf" },
  23. { "png", "image/png" },
  24. { "gif", "image/gif" },
  25. { "jpeg", "image/jpg" },
  26. { "jpg", "image/jpg" },
  27. { "iso", "application/x-iso9660-image" },
  28. { "webp", "image/webp" },
  29. { "svg", "image/svg+xml; charset=utf-8" },
  30. { "flac", "audio/flac" },
  31. { "mp3", "audio/mpeg" },
  32. { "ogg", "audio/ogg" },
  33. { "mp4", "video/mp4" },
  34. { "ogv", "video/ogg" },
  35. { "webm", "video/webm" },
  36. };
  37. #endif /* CONFIG_H */