From bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Nov 2007 23:49:03 +0000 Subject: This works with multiple remote includes now except it hangs when an include is within an include git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8590 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_remoteinclude.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/m_remoteinclude.cpp') diff --git a/src/modules/m_remoteinclude.cpp b/src/modules/m_remoteinclude.cpp index 3ad9b7ef2..d385e194e 100644 --- a/src/modules/m_remoteinclude.cpp +++ b/src/modules/m_remoteinclude.cpp @@ -94,8 +94,10 @@ class ModuleRemoteInclude : public Module { ServerInstance->Log(DEBUG,"Claiming schema http://, making fetch request"); - HTTPClientRequest req(ServerInstance, this, target, name); - req.Send(); + HTTPClientRequest* req = new HTTPClientRequest(ServerInstance, this, target, name); + req->Send(); + + /* XXX: We should delete req when the request is complete */ assoc[name] = new std::stringstream(); delete filedata; -- cgit v1.2.3