diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-11 14:05:52 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-11 14:05:52 +0000 |
commit | 1e4120dd22e70782a72057a0d41f35daffbd6b01 (patch) | |
tree | aa60213c87e48818ef0ba7afade82090da0e6bd9 /src/modules/httpd.h | |
parent | 1ce6fe7525c8213682d6cfca2acd9420d4e72f36 (diff) |
Craq fixing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4330 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/httpd.h')
-rw-r--r-- | src/modules/httpd.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modules/httpd.h b/src/modules/httpd.h index 3f8ee215c..5ac4d0c85 100644 --- a/src/modules/httpd.h +++ b/src/modules/httpd.h @@ -52,7 +52,10 @@ class HTTPDocument : public classbase int responsecode; public: - HTTPDocument(std::stringstream* doc, int response) : document(doc), responsecode(response) + + void* sock; + + HTTPDocument(void* opaque, std::stringstream* doc, int response) : document(doc), responsecode(response), sock(opaque) { } @@ -61,9 +64,9 @@ class HTTPDocument : public classbase return this->document; } - std::stringstream* GetDocumentSize() + unsigned long GetDocumentSize() { - return this->document.size(); + return this->document->str().length(); } int GetResponseCode() |