projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d9ca83
)
fixed bug 372
author
adam
<adam@megacz.com>
Tue, 10 Feb 2004 01:23:44 +0000
(
01:23
+0000)
committer
adam
<adam@megacz.com>
Tue, 10 Feb 2004 01:23:44 +0000
(
01:23
+0000)
darcs-hash:
20040210012344
-5007d-
f638edda6f325b7ddf468a342b9f95dcb80089a5
.gz
src/org/ibex/HTTP.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/HTTP.java
b/src/org/ibex/HTTP.java
index
d1bcb71
..
b95c3bc
100644
(file)
--- a/
src/org/ibex/HTTP.java
+++ b/
src/org/ibex/HTTP.java
@@
-581,6
+581,8
@@
public class HTTP {
if (buflen >= 4 && buf[buflen - 4] == '\r' && buf[buflen - 3] == '\n' &&
buf[buflen - 2] == '\r' && buf[buflen - 1] == '\n')
break;
+ if (buflen >=2 && buf[buflen - 1] == '\n' && buf[buflen - 2] == '\n')
+ break; // nice for people using stdio
if (buflen == buf.length) {
byte[] newbuf = new byte[buf.length * 2];
System.arraycopy(buf, 0, newbuf, 0, buflen);