summaryrefslogtreecommitdiffstats
path: root/net/Socket.cpp
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2019-07-08 18:20:19 +0200
committerAndras Timar <andras.timar@collabora.com>2019-07-08 21:05:46 +0200
commitf4dbe43c3ec0d4c1b6353d3d506f609665df5f84 (patch)
tree29ccfb6129301cc865eee9af815faff5d0a9616a /net/Socket.cpp
parentwsd: update outdated link in README (diff)
downloadonline-f4dbe43c3ec0d4c1b6353d3d506f609665df5f84.tar.gz
online-f4dbe43c3ec0d4c1b6353d3d506f609665df5f84.zip
keep the project buildable with poco 1.7.8
Change-Id: I87957a0b928f92f02ce72b7e6a2a575f2e5bad8d Reviewed-on: https://gerrit.libreoffice.org/75231 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'net/Socket.cpp')
-rw-r--r--net/Socket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/Socket.cpp b/net/Socket.cpp
index 8205519c98..17ceb38586 100644
--- a/net/Socket.cpp
+++ b/net/Socket.cpp
@@ -694,7 +694,9 @@ bool StreamSocket::parseHeader(const char *clientName,
if (map)
map->_messageSize += contentLength;
- if (request.getExpectContinue() && !_sentHTTPContinue)
+ const std::string& expect = request.get("Expect", "");
+ bool getExpectContinue = !expect.empty() && Poco::icompare(expect, "100-continue") == 0;
+ if (getExpectContinue && !_sentHTTPContinue)
{
LOG_TRC("#" << getFD() << " got Expect: 100-continue, sending Continue");
// FIXME: should validate authentication headers early too.