comparison MoinMoin/support/werkzeug/serving.py @ 6132:df65dcf7daea

upgrade werkzeug to 0.12.2
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Jun 2017 17:49:42 +0200
parents 7f12cf241d5e
children
comparison
equal deleted inserted replaced
6131:cb45a8287559 6132:df65dcf7daea
277 277
278 def version_string(self): 278 def version_string(self):
279 return BaseHTTPRequestHandler.version_string(self).strip() 279 return BaseHTTPRequestHandler.version_string(self).strip()
280 280
281 def address_string(self): 281 def address_string(self):
282 return self.client_address[0] 282 if getattr(self, 'environ', None):
283 return self.environ['REMOTE_ADDR']
284 else:
285 return self.client_address[0]
283 286
284 def port_integer(self): 287 def port_integer(self):
285 return self.client_address[1] 288 return self.client_address[1]
286 289
287 def log_request(self, code='-', size='-'): 290 def log_request(self, code='-', size='-'):