httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: httpd-2.0/modules/http mod_mime.c
Date Tue, 28 Aug 2001 15:31:08 GMT
wrowe       01/08/28 08:31:08

  Modified:    modules/http mod_mime.c
    Also in the prior commit (1.338)
    *) Modfied mod_mime to prevent mod_negotation from serving a multiview
       of a 'handler' or 'filter', so that any filename extension that does
       not contribute to the negotiated metadata can't be served without
       an explicit request.  E.g., if the .Z extension is associated with
       an unzip filter, the user request somefile.Z.html, mod_negotiation
       won't serve it.  It can serve somefile.Z.html when somefile.Z is
       requested, since the .Z extension is explictly requested, if the
       .html extension is associated with ContentType text/html.
      See changes for a complete description.  Because (in the example) the
      .Z extension doesn't affect negotiated behavior, the files index.html
      and index.Z.html couldn't be distinguished, and the user would get an
      error 406 NOT ACCEPTABLE, which is the _wrong_ answer.
  Revision  Changes    Path
  1.60      +1 -1      httpd-2.0/modules/http/mod_mime.c
  Index: mod_mime.c
  RCS file: /home/cvs/httpd-2.0/modules/http/mod_mime.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- mod_mime.c	2001/08/28 15:07:11	1.59
  +++ mod_mime.c	2001/08/28 15:31:08	1.60
  @@ -781,7 +781,7 @@
               /* The following extensions are not 'Found'.  That is, they don't
                * make any contribution to metadata negotation, so they must have
  -             * been explicitly requested by name.
  +             * been explicitly requested by name. 
               if (exinfo->handler && r->proxyreq == PROXYREQ_NONE) {
                   r->handler = exinfo->handler;

View raw message