summaryrefslogtreecommitdiff
path: root/methods/server.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-01-12 15:18:12 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-12 23:40:59 +0100
commitb6d88f39aceda2e093e1bf8751f07236b7d9e483 (patch)
tree8ac4947fbf48085fad2bf78ae9ce21d8f844cb15 /methods/server.h
parentfe4a53782211c459e8a50654055ad4f797ad1f3b (diff)
Only enable pipelining if server is HTTP/1.1
Just enabling it for anyone breaks with HTTP/1.0 servers and proxies sometimes. Closes: #810796
Diffstat (limited to 'methods/server.h')
-rw-r--r--methods/server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/server.h b/methods/server.h
index 365bc0879..3f6502432 100644
--- a/methods/server.h
+++ b/methods/server.h
@@ -51,6 +51,7 @@ struct ServerState
enum {Chunked,Stream,Closes} Encoding;
enum {Header, Data} State;
bool Persistent;
+ bool PipelineAllowed;
std::string Location;
// This is a Persistent attribute of the server itself.
@@ -86,7 +87,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'; TotalFileSize = 0; JunkSize = 0;
StartPos = 0; Encoding = Closes; time(&Date); HaveContent = false;
- State = Header; Persistent = false; Pipeline = true; MaximumSize = 0;};
+ State = Header; Persistent = false; Pipeline = false; MaximumSize = 0; PipelineAllowed = true;};
virtual bool WriteResponse(std::string const &Data) = 0;
/** \brief Transfer the data from the socket */