1a107601fa490ca69215facceebe3d0dc5e7f1f86bcef0037bdb2d139a15065c3f31e872bae79df3
94
 
94
 
95
    @staticmethod
95
    @staticmethod
96
    def redirect(dest, code = 302):
96
    def redirect(dest, code = 302):
97
        c.response.headers['Location'] = _force_unicode(dest).encode('utf8')
97
        dest = _force_unicode(dest).encode('utf8')
 
 
98
        if c.cname and "?cnameframe=1" not in red:
 
 
99
            dest += "?cnameframe=1"
 
 
100
        c.response.headers['Location'] = dest
98
        c.response.status_code = code
101
        c.response.status_code = code
 
 
102
 
99
        return c.response
103
        return c.response
100
 
104
 
101
    def sendjs(self,js, callback="document.write", escape=True):
105
    def sendjs(self,js, callback="document.write", escape=True):