Bug 57602 - HttpServlet returns no content when included during a HEAD request
Summary: HttpServlet returns no content when included during a HEAD request
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Specification APIs (show other bugs)
Version: 8.0.x-trunk
Hardware: All All
: P5 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on: 57601
Blocks:
  Show dependency tree
 
Reported: 2015-02-19 08:20 UTC by Jeremy Boynes
Modified: 2015-03-02 12:07 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Boynes 2015-02-19 08:20:48 UTC
Similar to bug 57601 the default implementation of doHead() in HttpServlet always suppresses output. This prevents a servlet that includes another's output from receiving the content especially if it has wrapped the response in order to capture the data.
Comment 1 Mark Thomas 2015-03-02 12:07:32 UTC
Fixed in trunk, 8.0.x for 8.0.21 onwards and in 7.0.x for 7.0.60 onwards.