[Zope] smushed download

Darrell dgallion@rochester.rr.com
Thu, 13 Jan 2000 10:30:53 -0500


Came back to this and looked at the headers.
I'm guessing that text/x-python is the problem. 
Humm, what to do ?


This file shows up as one huge line:
Date: Thu, 13 Jan 2000 15:22:27 GMT
 Server: Apache/1.3.9 (Unix)
 X-Powered-By: Zope (www.zope.org), Python (www.python.org)
 Content-Length: 9030
 Last-Modified: Fri, 22 Oct 1999 14:21:38 GMT
 Connection: close
 Content-Type: text/x-python

This file works fine:
Date: Thu, 13 Jan 2000 15:25:15 GMT
 Server: Apache/1.3.9 (Unix)
 X-Powered-By: Zope (www.zope.org), Python (www.python.org)
 Content-Length: 539
 Last-Modified: Thu, 16 Dec 1999 23:57:33 GMT
 Connection: close
 Content-Type: text/plain
 X-Pad: avoid browser bug


import urllib, string

def getFile(url):
    f = urllib.urlopen(url)
    bytes = f.read()
    print string.join(f.headers.headers)
    return bytes

getFile("http://www.zope.org/Members/tsarna/Tranalyzer/tranalyzer.py")
getFile("http://www.zope.org/Members/4am/packProduct/packProduct")

--Darrell

----- Original Message ----- 
From: Darrell 
To: Zope@zope.org 
Sent: Sunday, January 09, 2000 5:01 PM
Subject: [Zope] smushed download


This file shows up as one line full of python, hard to fix on my end.
http://www.zope.org/Members/tsarna/Tranalyzer/tranalyzer.py/view
 
Any ideas ?

--Darrell