Note that I modified the patch slightly, to avoid blank lines before the <html>, on the off chance bad html parsers care.