No. It's up to the application to set the Content-Length header. In the case of HTML, you don't need to. In the case of PDF, you MUST and it must be CORRECT or Netscape users won't be able to view the document.
An IDE is no substitute for an Intelligent Developer.