• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Content Length header

 
Meng Tan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
does anyone know whether Tomcat will send a Content Length header when the response size is smaller than the buffer size?
Thank you.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic