rse         98/03/20 03:17:14

  Modified:    src/modules/proxy proxy_ftp.c
  Log:
  As per request from Martin we should not create the Content-Length in the
  situation where one uses the ";type=a" feature (forced ASCII mode) because of
  newline translations.
  
  Revision  Changes    Path
  1.53      +1 -1      apache-1.3/src/modules/proxy/proxy_ftp.c
  
  Index: proxy_ftp.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/modules/proxy/proxy_ftp.c,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- proxy_ftp.c       1998/03/20 09:11:14     1.52
  +++ proxy_ftp.c       1998/03/20 11:17:14     1.53
  @@ -989,7 +989,7 @@
        else {
            proxy_add_header(resp_hdrs, "Content-Type", "text/plain", HDR_REP);
        }
  -     if (size != NULL) {
  +     if (parms[0] != 'a' && size != NULL) {
            proxy_add_header(resp_hdrs, "Content-Length", size, HDR_REP);
            Explain1("FTP: Content-Length set to %s", size);
        }
  
  
  

Reply via email to