Fixed downloads with no Content-Length.
Added a simple download test.