##// END OF EJS Templates
hgweb: pre-init mimetypes module (fixes ugly bug in python-2.6.2 mimetypes)...
Dirkjan Ochtman -
r8224:1075f5c1 default
parent child Browse files
Show More
@@ -283,6 +283,9 b' def create_server(ui, repo):'
283 283 else:
284 284 handler = _hgwebhandler
285 285
286 # ugly hack due to python issue5853 (for threaded use)
287 import mimetypes; mimetypes.init()
288
286 289 try:
287 290 if use_ipv6:
288 291 return IPv6HTTPServer((address, port), handler)
General Comments 0
You need to be logged in to leave comments. Login now