mime.go 236 B

12345678910
  1. package engine
  2. import (
  3. "github.com/xyproto/mime"
  4. )
  5. func (ac *Config) initializeMime() {
  6. // Read in the mimetype information from the system. Set UTF-8 when setting Content-Type.
  7. ac.mimereader = mime.New("/etc/mime.types", true)
  8. }