I'm confused.
If AppEngine is supposed to allow running of WSGI-employing apps ..
# somewhere in a webapp.RequestHandler
env = dict(os.environ.items())
for key, value in env.items():
self.response.out.write(key+': '+value+'<br/>')
req_uri = wsgiref.util.request_uri(env)
.. then why does env
not contain variables that PEP 333 lists as must-be-present -- causing the wsgiref.util.request_uri()
to raise a KeyError
?
I'm basically writing some libraries that will need to work either AppEngine or a typical Apache + modwsgi setup. I thought it would be enough to simply write a WSGI
compliant app, but seems AppEngine itself .. is not?