Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2004 09:38:35 +0000 (UTC)
From:      David Malone <dwmalone@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:    cvs commit: src/release/picobsd/tinyware/simple_httpd simple_httpd.c
Message-ID:  <200408160938.i7G9cZpb073941@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@kuzbass.ru>
  
  Revision  Changes    Path
  1.16      +24 -15    src/release/picobsd/tinyware/simple_httpd/simple_httpd.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408160938.i7G9cZpb073941>