Exemplo n.º 1
0
 def redirect(self):
     # methinks this is probably a vuln right here :I
     location = "https://{host}{path}".format(host=self.headers['host'],
                                              path=self.path)
     return Reply.text(308, '', headers=dict(location=location))
Exemplo n.º 2
0
	def redirect(self):
		# methinks this is probably a vuln right here :I
		location = "https://{host}{path}".format(host = self.headers['host'], path = self.path)
		return Reply.text(308, '', headers=dict(location=location))