You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Aleksandar Maricic <al...@synergy.co.nz> on 2002/05/28 02:31:08 UTC

[commons-sandbox-http] BrowserDetector.java patch for programmati c HTTP clients

Hello,

we have found that commons-sandbox-http
org.apache.commons.http.BrowserDetector needs a simple sanity check to
prevent its falling over with a StringIndexOutOfBoundsException when pages
are retrieved from a programmatic HTTP client that reports its User-Agent
header string as "Java1.3.1"

A patch to the current version (1.1) is attached - I hope someone with
commit privileges could spare a few minutes to make it a part of the
official source.

Thanks,

Aleks Maricic



 <<BrowserDetector.java.patch>>