1. 24 Jan, 2014 2 commits
    • Andrea Guzzo's avatar
      changed mg_get_mime_type to expect the default type as argument · 956788d7
      Andrea Guzzo authored
      instead of using a configuration option
      956788d7
    • Andrea Guzzo's avatar
      allow to define a default mime-type to use when lookup in the internal table fails · 45f66120
      Andrea Guzzo authored
      instead of always returning 'text/plain'
      
      To allow setting a different default mime-type the mg_get_mime_type() api has been
      extended to require an mg_server parameter.
      
      Note that using a static global as default mime type wouldn't have allowed us to
      control it via a configuration option because there is not global initialization phase
      and configuration options are provided (and specific) to each server instance.
      This means that different servers can be configured to use a different default mime-type
      (which is also a desired behaviour in many scenarios) when lookup fails.
      45f66120
  2. 23 Jan, 2014 4 commits
  3. 22 Jan, 2014 2 commits
  4. 20 Jan, 2014 12 commits
  5. 19 Jan, 2014 2 commits
  6. 17 Jan, 2014 7 commits
  7. 16 Jan, 2014 3 commits
  8. 15 Jan, 2014 7 commits
  9. 14 Jan, 2014 1 commit