Esempio n. 1
0
    def handleHeader(self, key, value):
        key = key.lower()

        if key == 'date' or key == 'last-modified':
            self.cachetemp[key] = value

        if key == 'content-encoding' and value == 'gzip':
            self.content_is_gzip = True
            
        HTTPPageGetter.handleHeader(self, key, value)
Esempio n. 2
0
    def handleHeader(self, key, value):
        key = key.lower()

        if key == 'date' or key == 'last-modified':
            self.cachetemp[key] = value

        if key == 'content-encoding' and value == 'gzip':
            self.content_is_gzip = True

        HTTPPageGetter.handleHeader(self, key, value)
Esempio n. 3
0
 def handleHeader(self, key, value):
     """
     hook method and save headers in their right order
     """
     HTTPPageGetter.handleHeader(self, key, value)
     self.factory.orderedHeaders.append(Header(key.decode("utf-8"), value.decode("utf-8")))