[kaffe] proxyHost...

Jukka Santala jsantala@tml.hut.fi
Tue, 7 May 2002 16:50:53 +0300 (EEST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-1144747756-1020779453=:809
Content-Type: TEXT/PLAIN; charset=US-ASCII

It's a fairly basic patch to add some sanity-checks to those
proxy-parameters. I should write some test-cases to determine the exact
Sun behaviour and then re-write it to match, though. But as it is, it
allows some nasty compatibility problems when either/or the proxy port or
host is set to an empty string (or non-number).

 -Jukka Santala

---559023410-1144747756-1020779453=:809
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="HttpURL.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.10.10205071650530.809@morphine.tml.hut.fi>
Content-Description: 
Content-Disposition: attachment; filename="HttpURL.patch"

SW5kZXg6IGxpYnJhcmllcy9qYXZhbGliL2thZmZlL25ldC93d3cvcHJvdG9j
b2wvaHR0cC9IdHRwVVJMQ29ubmVjdGlvbi5qYXZhDQo9PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09DQpSQ1MgZmlsZTogL2N2cy9rYWZmZS9rYWZmZS9saWJyYXJp
ZXMvamF2YWxpYi9rYWZmZS9uZXQvd3d3L3Byb3RvY29sL2h0dHAvSHR0cFVS
TENvbm5lY3Rpb24uamF2YSx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTEN
CmRpZmYgLXUgLXIxLjExIEh0dHBVUkxDb25uZWN0aW9uLmphdmENCi0tLSBs
aWJyYXJpZXMvamF2YWxpYi9rYWZmZS9uZXQvd3d3L3Byb3RvY29sL2h0dHAv
SHR0cFVSTENvbm5lY3Rpb24uamF2YQk0IEphbiAyMDAyIDA1OjEyOjMzIC0w
MDAwCTEuMTENCisrKyBsaWJyYXJpZXMvamF2YWxpYi9rYWZmZS9uZXQvd3d3
L3Byb3RvY29s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