Re: mime problem

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 10 Sep 1999 00:10:41 +0200

You are probably right in that shar files should use image transfer mode
at most times to preserve line endings.

However, this is one of the reasons why the default config includes a
"download" icon on every file format usin ascii transfer mode by
default. By clicking on the download icon on the left you forces both
Squid and the browser to make a binary download, if you select the
filename you select to view the file.

To be consistent you may want to add +download +view flags to every mime
type.

--
Henrik Nordstrom
Spare time Squid hacker
Doug Renner wrote:
> 
> I just got a call about .shar files being dos-ized after being
> pulled through Squid.  I verified the problem and fixed it by
> hacking the Squid mime types file as such:
> 
>   \.shar$  application/x-shar   anthony-script.gif  -  image
> 
> as opposed to the original:
> 
>   \.shar$  application/x-shar   anthony-script.gif  -  ascii +download
> 
> They both seem reasonable to me, .shars are text, but using 'sh' to
> unshar them breaks because of the carraige-returns that are added.
> 
> Are the carraige-returns normal behavior?
> 
> Thanks!
> 
> -----------------------------------------------
> Chaos, panic, & disorder - my work here is done.
Received on Thu Sep 09 1999 - 16:29:41 MDT

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