fixed bug 372
authoradam <adam@megacz.com>
Tue, 10 Feb 2004 01:23:42 +0000 (01:23 +0000)
committeradam <adam@megacz.com>
Tue, 10 Feb 2004 01:23:42 +0000 (01:23 +0000)
darcs-hash:20040210012342-5007d-2ca87a2922417f9bfe5a0381ecd1a74d764b7abc.gz

src/org/ibex/HTTP.java

index cdaca9d..d1bcb71 100644 (file)
@@ -88,7 +88,7 @@ public class HTTP {
             // previous call wrecked the socket connection, but we already sent our request, so we can't just retry --
             // this could cause the server to receive the request twice, which could be bad (think of the case where the
             // server call causes Amazon.com to ship you an item with one-click purchasing).
-            if (sock == null)
+            if (in == null)
                 throw new HTTPException("a previous pipelined call messed up the socket");
             
             Hashtable h = in == null ? null : parseHeaders(in);