Fix log output error when loading non-HTML file in proxy mode