- From: Gordon Dakin <gad@hunchuen.crystaliz.com>
- Date: Thu, 21 Nov 1996 18:38:54 -0500
- To: gad@hunchuen.crystaliz.com, www-jigsaw@w3.org
After a couple of small tweaks, anyway. I used the modified Request class
you sent me. I made one more modification to getInputStream() -- maybe
I'm not initializing something, which forces me to change:
if ((major == 1) && (minor == 0) && (in == null)) {
String m = getMethod();
if (m.equals("POST") || m.equals("PUT")) {
keepcon = false;
in = parser.getInputStream();
}
}
to:
if (in == null) {
String m = getMethod();
if (m.equals("POST") || m.equals("PUT")) {
keepcon = false;
in = parser.getInputStream();
}
}
I had one other glitch that seems more like a Java problem than jigsaw:
This loop hangs for some reason:
for (int got = 0; (got = in.read(buf)) > 0;)
fout.write(buf, 0, got);
in Request.newContent .
It seems to keep reading after all input is read, because it doesn't
hang if I limit the number of iterations to the actual number needed.
Any ideas?
Thanks,
Gordon Dakin
Received on Thursday, 21 November 1996 17:35:45 UTC