Esempio n. 1
0
 def normalize_target(cls, target):
     if cls.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif cls.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target
Esempio n. 2
0
 def normalize_target(cls, target):
     if cls.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif cls.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target
Esempio n. 3
0
 def __normalize_target(self, target):
     if self.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif self.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target
Esempio n. 4
0
 def __normalize_target(self, target):
     if self.poc_info['protocol']['name'] == 'http':
         return http.normalize_url(target)
     elif self.poc_info['protocol']['name'] == 'https':
         return http.normalize_url(target, https=True)
     else:
         return target