Show More
@@ -419,7 +419,8 b' class hgweb(object):' | |||||
419 | mt = mimetypes.guess_type(f)[0] |
|
419 | mt = mimetypes.guess_type(f)[0] | |
420 | rawtext = text |
|
420 | rawtext = text | |
421 | if util.binary(text): |
|
421 | if util.binary(text): | |
422 | text = "(binary:%s)" % mt |
|
422 | text = "(binary:%s)" % (mt or 'data') | |
|
423 | mt = mt or 'text/plain' | |||
423 |
|
424 | |||
424 | def lines(): |
|
425 | def lines(): | |
425 | for l, t in enumerate(text.splitlines(1)): |
|
426 | for l, t in enumerate(text.splitlines(1)): |
General Comments 0
You need to be logged in to leave comments.
Login now