I'm trying to write a simple web page that tells a user if they are capable of getting compressed content or not. Typically I would do this by checking for the presence and value of the "Accept-Encoding" header.
For some reason, it appears that this header is stripped off by App Engine. See: http://gzipcompression.appspot.com/ def get(self): self.response.out.write("<h1>Headers</h1>") for header, value in self.request.headers.iteritems(): self.response.out.write('%s: %s<br>' % (header, value)) self.response.out.write("<h1>__dict__</h1>") for key, value in self.__dict__.iteritems(): self.response.out.write('%s: %s<br>' % (key, value)) self.response.out.write("<h1>env</h1>") for name in os.environ.keys(): self.response.out.write("%s = %s<br />\n" % (name, os.environ [name])) Why would this be the case? Is there some other way to find the presence and value of the header? -Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
