Remove unnecessary condition in write_text
This commit is contained in:
1 parent
ce152e9c94
commit
394c87c40b
1 file changed
+1
-2
@@ -302,8 +302,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
||||
|
||||
self.end_headers()
|
||||
|
||||
if message is not None:
|
||||
self.wfile.write(message.encode("UTF-8"))
|
||||
self.wfile.write(message.encode("UTF-8"))
|
||||
|
||||
def write_file(self, path, cache_headers=True):
|
||||
""" Returns a file to the user. """
|
||||
|
||||
Reference in new issue
Block a user