From bd2572b3cdf139fce27cc8a130df9d62a94774e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 6 Apr 2000 20:06:20 +0200
Subject: [PATCH] Should now work without threads.

Rev: lib/modules/Protocols.pmod/HTTP.pmod/Query.pike:1.17
---
 lib/modules/Protocols.pmod/HTTP.pmod/Query.pike | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike b/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike
index ef05985ed5..679223f53d 100644
--- a/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike
+++ b/lib/modules/Protocols.pmod/HTTP.pmod/Query.pike
@@ -574,17 +574,14 @@ array|mapping|string cast(string to)
    switch (to)
    {
       case "mapping":
-	 `()();
 	 return headers|
 	    (["data":data(),
 	      "protocol":protocol,
 	      "status":status,
 	      "status_desc":status_desc]);
       case "array":
-	 `()();
 	 return ({headers,data(),protocol,status,status_desc});
       case "string":
-	 `()();
          data();
          return buf;
    }
@@ -632,7 +629,9 @@ class PseudoFile
 
 object file(void|mapping newheader,void|mapping removeheader)
 {
+#if constant(thread_create)
    `()();
+#endif
    mapping h=headers;
    int len;
    if (newheader||removeheader)
@@ -658,7 +657,9 @@ object file(void|mapping newheader,void|mapping removeheader)
 
 object datafile()
 {
+#if constant(thread_create)
    `()();
+#endif
    return PseudoFile(con,buf[datapos..],(int)headers["content-length"]);
 }
 
-- 
GitLab