Hello,
I am sure this must be a well known issue, but I can't find anything
on the web for it, apols if this is a FAQ.
My application (blog.beerandspeech.org) serves images using the
blobstore. Serving images to all browsers except for Internet Explorer
works fine.
Serving images to IE generates the following Traceback,
<type 'exceptions.KeyError'>: 'content-type'
Traceback (most recent call last):
File "/base/data/home/apps/s~mozrat-cms/2.351610313383242835/main.py",
line 52, in main
util.run_wsgi_app(application)
File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
line 98, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py",
line 116, in run_bare_wsgi_app
result = application(env, _start_response)
File
"/base/data/home/apps/s~mozrat-cms/2.351610313383242835/django/core/handlers/wsgi.py",
line 253, in __call__
response = self.apply_response_fixes(request, response)
File
"/base/data/home/apps/s~mozrat-cms/2.351610313383242835/django/core/handlers/base.py",
line 194, in apply_response_fixes
response = func(request, response)
File
"/base/data/home/apps/s~mozrat-cms/2.351610313383242835/django/http/utils.py",
line 79, in fix_IE_for_vary
if response['Content-Type'].split(';')[0] not in safe_mime_types:
File
"/base/data/home/apps/s~mozrat-cms/2.351610313383242835/django/http/__init__.py",
line 360, in __getitem__
return self._headers[header.lower()][1]
The Django view that I use to serve the blog is really simple
def serve_blob(request, key):
f = memcache.get(key)
if not f:
f = File.get(key)
memcache.set(key, f)
return blobstorehelper.send_blob(request, f.file, save_as=True)
I am guessing this is an issue with the HTTP request that Internet
Explorer generates, but what is the fix?
Any help gratefully received.
~sm
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.