summaryrefslogtreecommitdiff
path: root/methods/server.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-10-07 17:47:30 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-10-07 17:47:30 +0200
commitc48eea97b93920062ea26001081d4fdf7eb967e3 (patch)
tree84e5609e0f35579a8ccca029794555fd6c0bbc80 /methods/server.h
parentc86bc8515a3a195aa244a1743476b102d72c9a2a (diff)
make expected-size a maximum-size check as this is what we want at this point
Diffstat (limited to 'methods/server.h')
-rw-r--r--methods/server.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/server.h b/methods/server.h
index 0134a9538..3093e00c9 100644
--- a/methods/server.h
+++ b/methods/server.h
@@ -49,7 +49,7 @@ struct ServerState
URI Proxy;
unsigned long TimeOut;
- unsigned long long ExpectedSize;
+ unsigned long long MaximumSize;
protected:
ServerMethod *Owner;
@@ -75,7 +75,7 @@ struct ServerState
bool Comp(URI Other) const {return Other.Host == ServerName.Host && Other.Port == ServerName.Port;};
virtual void Reset() {Major = 0; Minor = 0; Result = 0; Code[0] = '\0'; Size = 0;
StartPos = 0; Encoding = Closes; time(&Date); HaveContent = false;
- State = Header; Persistent = false; Pipeline = true; ExpectedSize = 0;};
+ State = Header; Persistent = false; Pipeline = true; MaximumSize = 0;};
virtual bool WriteResponse(std::string const &Data) = 0;
/** \brief Transfer the data from the socket */