This is a bit tangent, but…
I was rolling a web server as the core of a project, and it’d serve a HTML page but it’d never show in the browser. Odd. And then I noticed that the browser was saving the page as a download without ever asking me if I wanted to save it. (Firefox. Chromium also saves without asking, but at least displays that it has in the lower left corner.)
Huh. That seems half-way like a bad security risk. I certainly won’t casually open HTML files in my download directory after this. Now to fix my header problem.
Connection: keep-alive
Content-Disposition: attachment; filename="index.html";
Content-Type: text/xhtml; charset=utf-8
Content-Length: 7665
Date: Tue, 02 Oct 2018 16:27:02 GMT
Last-Modified: Tue, 19 Jul 2011 18:13:34 GMT
Server: ZeroChan
A surprised mourning dove: