fix content length, and let servlet container flush and close the output stream for us (it owns the stream)
Merge pull request #6 from jay-hodgson/release-1

fix content length, and let servlet container flush and close the output...