changeset 6528:6cf050b43eaf

Send content-length for /favico.ico Browser was stuck trying to download and server was reporting connection timeout after a minute.
author John Rouillard <rouilj@ieee.org>
date Sun, 07 Nov 2021 12:42:49 -0500
parents 5ad7fb912227
children c3dfc4977ec6
files roundup/scripts/roundup_server.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py	Sun Nov 07 12:19:27 2021 -0500
+++ b/roundup/scripts/roundup_server.py	Sun Nov 07 12:42:49 2021 -0500
@@ -321,6 +321,7 @@
 
             self.send_response(200)
             self.send_header('Content-Type', 'image/x-icon')
+            self.send_header('Content-Length', len(favico))
             self.end_headers()
 
             # this bufsize is completely arbitrary, I picked 4K because

Roundup Issue Tracker: http://roundup-tracker.org/