Home
last modified time | relevance | path

Searched refs:xfp (Results 1 – 1 of 1) sorted by relevance

/unit/test/
H A Dtest_forwarded_header.py22 def get_fwd(self, sock_type='ipv4', xff=None, xfp=None): argument
30 if xfp is not None:
31 headers['X-Forwarded-Proto'] = xfp
55 resp = self.get_fwd(xff='1.1.1.1', xfp='https')
67 assert self.get_scheme(xfp='https') == 'http', 'bad proto'
68 assert self.get_scheme(xfp='blah') == 'http', 'bad xfp'
79 resp = self.get_fwd(xff='1.1.1.1', xfp='https')
91 assert self.get_scheme(xfp='on') == 'https', 'xfp replace 2'
93 self.get_scheme('ipv6', xfp='https') == 'http'
130 self.get_scheme(xfp='http, https, http') == 'http'
[all …]