Skip to content
Snippets Groups Projects
Commit bd2572b3 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Should now work without threads.

Rev: lib/modules/Protocols.pmod/HTTP.pmod/Query.pike:1.17
parent 4f57fabd
No related branches found
No related tags found
No related merge requests found
...@@ -574,17 +574,14 @@ array|mapping|string cast(string to) ...@@ -574,17 +574,14 @@ array|mapping|string cast(string to)
switch (to) switch (to)
{ {
case "mapping": case "mapping":
`()();
return headers| return headers|
(["data":data(), (["data":data(),
"protocol":protocol, "protocol":protocol,
"status":status, "status":status,
"status_desc":status_desc]); "status_desc":status_desc]);
case "array": case "array":
`()();
return ({headers,data(),protocol,status,status_desc}); return ({headers,data(),protocol,status,status_desc});
case "string": case "string":
`()();
data(); data();
return buf; return buf;
} }
...@@ -632,7 +629,9 @@ class PseudoFile ...@@ -632,7 +629,9 @@ class PseudoFile
object file(void|mapping newheader,void|mapping removeheader) object file(void|mapping newheader,void|mapping removeheader)
{ {
#if constant(thread_create)
`()(); `()();
#endif
mapping h=headers; mapping h=headers;
int len; int len;
if (newheader||removeheader) if (newheader||removeheader)
...@@ -658,7 +657,9 @@ object file(void|mapping newheader,void|mapping removeheader) ...@@ -658,7 +657,9 @@ object file(void|mapping newheader,void|mapping removeheader)
object datafile() object datafile()
{ {
#if constant(thread_create)
`()(); `()();
#endif
return PseudoFile(con,buf[datapos..],(int)headers["content-length"]); return PseudoFile(con,buf[datapos..],(int)headers["content-length"]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment