##// END OF EJS Templates
Use application/octet-stream as the content-type of unknown binary files
Alexis S. L. Carvalho -
r2103:caccf539 default
parent child Browse files
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 or 'data')
422 mt = mt or 'application/octet-stream'
423 text = "(binary:%s)" % mt
423 mt = mt or 'text/plain'
424 mt = mt or 'text/plain'
424
425
425 def lines():
426 def lines():
General Comments 0
You need to be logged in to leave comments. Login now