improve error handling in load_mime_config

fix wrong content-length in the access log

(0) -300 -100 -30 -10 -2 +2 tip

mercurial