For a 200 successful response, set the headers implicitly

Using res.setHeader() instead of res.writeHead() means that other middleware
are free to modify the headers as well if required. For example, the
express.compress() middleware was unable to apply gzip to files from
connect-static-transform since the headers were already sent; with this change
made, express.compress() works fine alongside connect-static-transform
middleware.