Return-Path: owner-new-httpd Received: by taz.hyperreal.com (8.6.10/8.6.5) id LAA14266; Tue, 4 Apr 1995 11:58:12 -0700 Received: from life.ai.mit.edu by taz.hyperreal.com (8.6.10/8.6.5) with SMTP id LAA14252; Tue, 4 Apr 1995 11:58:09 -0700 Received: from alpha-bits.mit.edu (alpha-bits.ai.mit.edu) by life.ai.mit.edu (4.1/AI-4.10) for new-httpd@hyperreal.com id AA10744; Tue, 4 Apr 95 14:58:09 EDT Date: Tue, 4 Apr 95 14:58:09 EDT From: rst@ai.mit.edu (Robert S. Thau) Message-Id: <9504041858.AA10744@life.ai.mit.edu> To: new-httpd@hyperreal.com Subject: Re: YMB (yet more bugs) Sender: owner-new-httpd@hyperreal.com Precedence: bulk Reply-To: new-httpd@hyperreal.com This time for sure... [quoth Bullwinkle...] *** http_mime.c Sun Apr 2 18:14:22 1995 --- ../http_mime.c Tue Apr 4 14:52:27 1995 *************** *** 179,186 **** --- 179,195 ---- int i,l,l2; struct mime_ext *p; char fn[MAX_STRING_LEN]; + char *endp; strcpy(fn,file); + + /* Don't consider trailing slashes when trying to determine type... */ + + endp = fn + strlen(fn); + + while (endp > fn && endp[-1] == '/') + *--endp = '\0'; + if((i=rind(fn,'.')) >= 0) { ++i; l=strlen(fn);