httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_ftp.c
Date Wed, 30 Jan 2002 14:56:42 GMT
martin      02/01/30 06:56:42

  Modified:    modules/proxy proxy_ftp.c
  Log:
  Something sets the content_encoding, even if a directory listing
  is going to be returned. Hack: unset the content_encoding if
  dirlisting == TRUE.
  
  Revision  Changes    Path
  1.98      +8 -1      httpd-2.0/modules/proxy/proxy_ftp.c
  
  Index: proxy_ftp.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_ftp.c,v
  retrieving revision 1.97
  retrieving revision 1.98
  diff -u -r1.97 -r1.98
  --- proxy_ftp.c	30 Jan 2002 14:54:18 -0000	1.97
  +++ proxy_ftp.c	30 Jan 2002 14:56:42 -0000	1.98
  @@ -1561,7 +1561,14 @@
       ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server,
                    "proxy: FTP: Content-Type set to %s", r->content_type);
   
  -    /* set content-encoding */
  +    /* If an encoding has been set by mistake, delete it.
  +     * @@@ FIXME (e.g., for ftp://user@host/file*.tar.gz,
  +     * @@@        the encoding is currently set to x-gzip)
  +     */
  +    if (dirlisting && r->content_encoding != NULL)
  +        r->content_encoding = NULL;
  +
  +    /* set content-encoding (not for dir listings, they are uncompressed)*/
       if (r->content_encoding != NULL && r->content_encoding[0] != '\0') {
           ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server,
                "proxy: FTP: Content-Encoding set to %s", r->content_encoding);
  
  
  

Mime
View raw message