Bug 28580 - HTTP HEAD fails on chuncked encoding
Summary: HTTP HEAD fails on chuncked encoding
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: 0.92
: P3 normal
Target Milestone: ---
Assignee: David Daney
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 23:48 UTC by David Daney
Modified: 2006-08-11 21:10 UTC (History)
1 user (show)

See Also:
Host: *-*-*
Target: *-*-*
Build: *-*-*
Known to work:
Known to fail:
Last reconfirmed: 2006-08-02 23:49:29


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Daney 2006-08-02 23:48:40 UTC
A HEAD request should never attempt to read any body data.  If chunked encoding or a content length are supplied, reading of the body is attempted.
Comment 1 David Daney 2006-08-02 23:49:29 UTC
I have a preliminary patch that I will test and post next week.
Comment 2 David Daney 2006-08-11 21:10:12 UTC
Fix committed to classpath, test to mauve.
Comment 3 David Daney 2006-09-11 18:15:39 UTC
Subject: Bug 28580

Author: daney
Date: Mon Sep 11 18:15:27 2006
New Revision: 116853

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116853
Log:
       PR classpath/28580
       * gnu/java/net/protocol/http/Request.java (readResponse):  Call
       createResponseBodyStream in more cases and with new parameter.
       (createResponseBodyStream):  Added new parameter mayHaveBody. Handle
       HEAD and !mayHaveBody responses specially.

Modified:
    trunk/libjava/classpath/ChangeLog.gcj
    trunk/libjava/classpath/gnu/java/net/protocol/http/Request.java