[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread ego008
use zipserve from google.appengine.ext import zipserve 2009/8/13 edvakf taka.atsu...@googlemail.com I found the part of the code where gzip file was magically unzipped. /Applications/GoogleAppEngineLauncher.app/Contents/Resources/

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread Nick Johnson (Google)
Hi edvakf, On Wed, Aug 12, 2009 at 11:19 PM, edvakftaka.atsu...@googlemail.com wrote: I found the part of the code where gzip file was magically unzipped. /Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf
Thank you, Nick. the content-encoding header should be omitted That's how I ended up doing in the end. I have another question. If the .gz file was fetched with Content- Encoding: gzip, is the URL Fetch Quota counted by the gzipped filesize, or expanded (original) filesize? edvakf

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread Nick Johnson (Google)
On Thu, Aug 13, 2009 at 10:58 AM, edvakftaka.atsu...@googlemail.com wrote: Thank you, Nick. the content-encoding header should be omitted That's how I ended up doing in the end. I have another question. If the .gz file was fetched with Content- Encoding: gzip, is the URL Fetch Quota

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf
Hi Nick, I ran a little test, and it seems to me that the URL Fetch Quota is counting the expanded text size. I put a file on my server http://atsushi-takayama.com/siteinfo/ foo.gz, which is a text file of exactly 1MB gzipped down to 180KB, which is served with the header; Content-Length:

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread Nick Johnson (Google)
Hi edvakf, Please do file this as a bug, including the test and evidence you gathered below. -Nick Johnson On Thu, Aug 13, 2009 at 4:30 PM, edvakf taka.atsu...@googlemail.com wrote: Hi Nick, I ran a little test, and it seems to me that the URL Fetch Quota is counting the expanded text

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf
Correction The code is this. range(10) instead of range(1) == class Test(webapp.RequestHandler): def get(self): for i in range(10): raw_data = urlfetch.fetch('http://atsushi-takayama.com/ siteinfo/foo.gz').content

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-13 Thread edvakf
This issue is now reported. http://code.google.com/p/googleappengine/issues/detail?id=1975 edvakf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

[google-appengine] Re: Fetching gzipped resource, but comes out unzipped.

2009-08-12 Thread edvakf
I found the part of the code where gzip file was magically unzipped. /Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/ google/appengine/api/urlfetch_stub.py =