Add a test for respecting the HTTP content length header.

Not sure if we really want a HTTP directory, but this was something @annevk was interested in.