Mercurial > public > mercurial-scm > hg-stable
diff mercurial/byterange.py @ 5930:c301f15c965a
send conservatively capitalized HTTP headers
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 23 Jan 2008 14:28:25 +0100 |
parents | eb0b4a2d70a9 |
children | 8fee8ff13d37 |
line wrap: on
line diff
--- a/mercurial/byterange.py Wed Jan 16 19:14:54 2008 +0330 +++ b/mercurial/byterange.py Wed Jan 23 14:28:25 2008 +0100 @@ -233,7 +233,7 @@ size = (lb - fb) fo = RangeableFileObject(fo, (fb, lb)) headers = mimetools.Message(StringIO( - 'Content-Type: %s\nContent-Length: %d\nLast-modified: %s\n' % + 'Content-Type: %s\nContent-Length: %d\nLast-Modified: %s\n' % (mtype or 'text/plain', size, modified))) return urllib.addinfourl(fo, headers, 'file:'+file)