diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 23:49:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 23:49:03 +0000 |
commit | bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c (patch) | |
tree | 281e7e2af14c04c1591d1312557cb57084aac16a /src/modules/m_remoteinclude.cpp | |
parent | 5252b3095f1329c547559ae66774227c4629e2c4 (diff) |
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
Diffstat (limited to 'src/modules/m_remoteinclude.cpp')
-rw-r--r-- | src/modules/m_remoteinclude.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; |