fixing problem interacting with maven. Maven has a single-connection limit, so unless the server closes the response after sending the file, maven chokes.