Code Review Request: 7154502: IAE: Illegal character(s) in message header field from HttpURLConnection.checkMessageHeader

Chris Hegarty chris.hegarty at oracle.com
Thu Jun 21 14:10:09 PDT 2012


This change looks fine to me.

-Chris

On 21 Jun 2012, at 18:53, Kurchi Subhra Hazra <kurchi.subhra.hazra at oracle.com> wrote:

> Hi,
> 
>   Currently HttpURLConnection.setRequestProperty() does not
> document that it can throw an IllegalArgumentException. However, this method does
> throw an IAE if the key or value contains illegal characters. The same applies
> for HttpURLConnection.addRequestProperty(), and this webrev tries to address this
> issue.
> 
> Bug: http://bugs.sun.com/view_bug.do?bug_id=7154502
> Webrev: http://cr.openjdk.java.net/~khazra/7154502/webrev.00/
> 
> Thanks,
> Kurchi
> 
> 



More information about the net-dev mailing list