Re: BUG? Corrupted files with ftp:// (squid-2.1.PATCH1)

From: Pål Baltzersen <pal.baltzersen@dont-contact.us>
Date: Mon, 30 Nov 1998 14:33:27 +0100

Henrik Nordstrom wrote:

>> I have checked and compared with files downloaded directly with
>> unix ftp and found that the files differ and that the problem is
>> (that some or all) LF are changed to CRLF:
>
>If you are using the default mime.conf settings then this is most likely
>caused by the browser. How did you download the files using the browser?
>(save link as, or file->save as?)

Shift+MouseButton1 from the directory listing.

>By default Squid knows nothing about xls files, so it assumes it is
>unknown text/plain file that needs a binary transfer.

OK, this solved the problem for .xls.

>To get around browsers that don't know how to save binary text files
>there is a separate download icon to the right that changes the filetype
>to application/binary. There is also a icon to make a ascii download of
>the file if format translation is wanted.
>
>A permanent workaround is to make more mime.conf mappings for known file
>types. Send additions to squid-bugs@ircache.net for future inclusion in
>the distribution.

I applied the folowing changes:

(What is correct: application/msword or application/vnd.ms-word?)

*** mime.conf.default Thu Nov 19 23:32:59 1998
--- mime.conf Mon Nov 30 14:20:04 1998
***************
*** 40,45 ****
--- 40,46 ----
  \.rtf$ application/x-rtf anthony-unknown.gif - image
  \.Z$ - anthony-compressed.gif compress image
  \.gz$ - anthony-unknown.gif gzip image
+ \.tar\.gz$ application/x-tar anthony-tar.gif gzip image
  \.tgz$ application/x-tar anthony-tar.gif gzip image
  \.csh$ application/x-csh anthony-script.gif - ascii
  \.dvi$ application/x-dvi anthony-dvi.gif - image
***************
*** 114,121 ****
  \.movie$ video/x-sgi-movie anthony-movie.gif - image
  \.hqx$ application/mac-binhex40 anthony-binhex.gif - image
  \.mwrt$ application/macwriteii anthony-unknown.gif - image
! \.msw$ application/msword anthony-unknown.gif - image
! \.doc$ application/msword anthony-unknown.gif - image +view
  \.mif$ application/x-mif anthony-unknown.gif - image
  \.sit$ application/stuffit anthony-unknown.gif - image
  \.pict$ application/pict anthony-image.gif - image
--- 115,142 ----
  \.movie$ video/x-sgi-movie anthony-movie.gif - image
  \.hqx$ application/mac-binhex40 anthony-binhex.gif - image
  \.mwrt$ application/macwriteii anthony-unknown.gif - image
! \.mdb$ application/vnd.ms-access anthony-unknown.gif - image
! \.xls$ application/vnd.ms-excel anthony-unknown.gif - image +view
! \.xlw$ application/vnd.ms-excel anthony-unknown.gif - image
! \.pcx$ application/vnd.ms-paintbrush anthony-image.gif - image +view
! \.bmp$ application/vnd.ms-paintbrush anthony-image.gif - image +view
! \.pot$ application/vnd.ms-powerpoint anthony-unknown.gif - image
! \.ppa$ application/vnd.ms-powerpoint anthony-unknown.gif - image
! \.pps$ application/vnd.ms-powerpoint anthony-unknown.gif - image
! \.ppt$ application/vnd.ms-powerpoint anthony-unknown.gif - image +view
! \.pwz$ application/vnd.ms-powerpoint anthony-unknown.gif - image
! \.mpp$ application/vnd.ms-project anthony-unknown.gif - image +view
! \.pub$ application/vnd.ms-publisher anthony-unknown.gif - image +view
! \.scd$ application/vnd.ms-schedule anthony-unknown.gif - image +view
! \.doc$ application/vnd.ms-word anthony-unknown.gif - image
! #\.doc$ application/msword anthony-unknown.gif - image +view
! \.dot$ application/vnd.ms-word anthony-unknown.gif - image
! \.msw$ application/vnd.ms-word anthony-unknown.gif - image
! \.wiz$ application/vnd.ms-word anthony-unknown.gif - image
! \.wdb$ application/vnd.ms-works anthony-unknown.gif - image +view
! \.wks$ application/vnd.ms-works anthony-unknown.gif - image
! \.wps$ application/vnd.ms-works anthony-unknown.gif - image
! \.wcm$ application/vnd.ms-works anthony-unknown.gif - image
  \.mif$ application/x-mif anthony-unknown.gif - image
  \.sit$ application/stuffit anthony-unknown.gif - image
  \.pict$ application/pict anthony-image.gif - image

Pål

----------------------------------------------------------------
Addr: Pål Baltzersen, ElTele Øst AS, Sandakervn. 114B, N-0483 Oslo.
Phone: +47 23 18 10 00 Direct: +47 23 18 11 74
fax: +47 23 18 10 01 Mobile: +47 93 08 11 74
mail: pb@ost.eltele.no pal.baltzersen@ost.eltele.no
Received on Mon Nov 30 1998 - 07:10:09 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:25 MST