[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/46063] New: User-defined Content-Encoding throws exceptio

From: martin.winter at siemens dot com
Subject: [Bug classpath/46063] New: User-defined Content-Encoding throws exception
Date: Mon, 18 Oct 2010 06:34:19 +0000


           Summary: User-defined Content-Encoding throws exception
           Product: classpath
           Version: 0.98
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: address@hidden
        ReportedBy: address@hidden

I'm working with HttpUrlConnection exchanging data with a user-defined
Content-Encoding. The processing in gnu.java.net.protocol.http.Request:503
however throws a ProtocolException on all unknown Content-Encodings.

The behaviour of the Sun JRE however (and also what I would expect) is to let
the application handle an unknown content encoding.

My proposal:


505:           throw new ProtocolException("Unsupported Content-Encoding: " +
506:                                        contentCoding);


505:           return in;

At least encodings starting with "x-" should be allowed to be handled by the

reply via email to

[Prev in Thread] Current Thread [Next in Thread]