diff options
-rw-r--r-- | Lib/BaseHTTPServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/BaseHTTPServer.py b/Lib/BaseHTTPServer.py index ab34e8f..2e7bb3f 100644 --- a/Lib/BaseHTTPServer.py +++ b/Lib/BaseHTTPServer.py @@ -331,7 +331,7 @@ class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler): short, long = self.responses[code] except KeyError: short, long = '???', '???' - if not message: + if message is None: message = short explain = long self.log_error("code %d, message %s", code, message) |