cvs commit: src/release/picobsd/tinyware/simple_httpd simple_httpd.c

David Malone dwmalone at FreeBSD.org
Mon Aug 16 02:38:35 PDT 2004


dwmalone    2004-08-16 09:38:35 UTC

  FreeBSD src repository

  Modified files:
    release/picobsd/tinyware/simple_httpd simple_httpd.c 
  Log:
  Improve MIME handling. This patch is based on Eugene's patch, but
  with the following changes:
  
  1) Don't make a mime_types.h 'cos we should avoid creating variables
     in header files,
  2) Use strrchr to find the extension, rather than strchr,
  3) Slightly simplify the mime-type matching loop.
  
  any goof are likely to be mine. Note that there are links to more
  improvements by Eugene in the PR.
  
  PR:             29725
  Submitted by:   Eugene Grosbein <eugen at kuzbass.ru>
  
  Revision  Changes    Path
  1.16      +24 -15    src/release/picobsd/tinyware/simple_httpd/simple_httpd.c


More information about the cvs-src mailing list