diff options
| author | 2007-11-11 23:49:03 +0000 | |
|---|---|---|
| committer | 2007-11-11 23:49:03 +0000 | |
| commit | bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c (patch) | |
| tree | 281e7e2af14c04c1591d1312557cb57084aac16a /src/modules/httpclient.h | |
| parent | Currently crashes with multiple layers of include. don't use this yet (diff) | |
| download | inspircd++-bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c.tar.gz inspircd++-bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c.tar.bz2 inspircd++-bedbe6480de4af64c0e752bc5ed09d0d7a9aa72c.zip | |
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/httpclient.h')
| -rw-r--r-- | src/modules/httpclient.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/httpclient.h b/src/modules/httpclient.h index a89de4785..ed258c6af 100644 --- a/src/modules/httpclient.h +++ b/src/modules/httpclient.h @@ -133,6 +133,12 @@ class HTTPClientResponse : public Request str = responsestr; return response; } + + void SetResponse(const std::string &str) + { + responsestr = str; + response = atoi(responsestr.c_str()); + } std::string GetHeader(const std::string &header) { |
