mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-20 23:11:28 -04:00
Todo: find out content-length, then read that much data
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5241 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f54aa39428
commit
30f7b57e98
@ -48,16 +48,17 @@ class HttpSocket : public InspSocket
|
|||||||
std::string request_type;
|
std::string request_type;
|
||||||
std::string uri;
|
std::string uri;
|
||||||
std::string http_version;
|
std::string http_version;
|
||||||
|
int postsize;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
HttpSocket(InspIRCd* SI, std::string host, int port, bool listening, unsigned long maxtime, FileReader* index_page) : InspSocket(SI, host, port, listening, maxtime), index(index_page)
|
HttpSocket(InspIRCd* SI, std::string host, int port, bool listening, unsigned long maxtime, FileReader* index_page) : InspSocket(SI, host, port, listening, maxtime), index(index_page), postsize(0)
|
||||||
{
|
{
|
||||||
SI->Log(DEBUG,"HttpSocket constructor");
|
SI->Log(DEBUG,"HttpSocket constructor");
|
||||||
InternalState = HTTP_LISTEN;
|
InternalState = HTTP_LISTEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
HttpSocket(InspIRCd* SI, int newfd, char* ip, FileReader* ind) : InspSocket(SI, newfd, ip), index(ind)
|
HttpSocket(InspIRCd* SI, int newfd, char* ip, FileReader* ind) : InspSocket(SI, newfd, ip), index(ind), postsize(0)
|
||||||
{
|
{
|
||||||
InternalState = HTTP_SERVE_WAIT_REQUEST;
|
InternalState = HTTP_SERVE_WAIT_REQUEST;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user