Skip to content

Commit c65347f

Browse files
committedFeb 15, 2025·
fix: Remove old WSGIRequestHandler workaround
This was fixed upstream a long time ago. fixes #1472
1 parent ee24927 commit c65347f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

‎bottle.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -3398,12 +3398,9 @@ def run(self, app): # pragma: no cover
33983398
import socket
33993399

34003400
class FixedHandler(WSGIRequestHandler):
3401-
def address_string(self): # Prevent reverse DNS lookups please.
3402-
return self.client_address[0]
3403-
3404-
def log_request(*args, **kw):
3401+
def log_message(other, format, *args):
34053402
if not self.quiet:
3406-
return WSGIRequestHandler.log_request(*args, **kw)
3403+
return WSGIRequestHandler.log_message(other, format, *args)
34073404

34083405
handler_cls = self.options.get('handler_class', FixedHandler)
34093406
server_cls = self.options.get('server_class', WSGIServer)

0 commit comments

Comments
 (0)
Please sign in to comment.