Mercurial > hg > mercurial-crew-with-dirclash
changeset 4038:5ae460b1f6f0
Don't use ints in HTTP headers
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 18 Jan 2007 22:16:26 -0200 |
parents | bbdba01cce28 |
children | 55578a8d7e84 cc08d2543593 |
files | mercurial/hgweb/common.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py +++ b/mercurial/hgweb/common.py @@ -38,7 +38,7 @@ def staticfile(directory, fname, req): os.stat(path) ct = mimetypes.guess_type(path)[0] or "text/plain" req.header([('Content-type', ct), - ('Content-length', os.path.getsize(path))]) + ('Content-length', str(os.path.getsize(path)))]) return file(path, 'rb').read() except (TypeError, OSError): # illegal fname or unreadable file