From owner-cvs-all@FreeBSD.ORG Mon Aug 16 09:38:35 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E54A16A4CE; Mon, 16 Aug 2004 09:38:35 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 256D443D5F; Mon, 16 Aug 2004 09:38:35 +0000 (GMT) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7G9cZBR073942; Mon, 16 Aug 2004 09:38:35 GMT (envelope-from dwmalone@repoman.freebsd.org) Received: (from dwmalone@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7G9cZpb073941; Mon, 16 Aug 2004 09:38:35 GMT (envelope-from dwmalone) Message-Id: <200408160938.i7G9cZpb073941@repoman.freebsd.org> From: David Malone Date: Mon, 16 Aug 2004 09:38:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/release/picobsd/tinyware/simple_httpd simple_httpd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2004 09:38:35 -0000 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 Revision Changes Path 1.16 +24 -15 src/release/picobsd/tinyware/simple_httpd/simple_httpd.c