diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-05-09 15:37:44 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-05-09 15:37:44 +0200 |
commit | a9cb46c809197e72bd0ef99c8ec8704349cc25df (patch) | |
tree | 03876899e57a682fd300beb5ed32abb806bacac7 /fbench | |
parent | 4da5bd312d1d2062a25795473f3e77a88f8f3fd8 (diff) |
only write content if usePost is true
Diffstat (limited to 'fbench')
-rw-r--r-- | fbench/src/httpclient/httpclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fbench/src/httpclient/httpclient.cpp b/fbench/src/httpclient/httpclient.cpp index 3a4cb68aa19..8974435a030 100644 --- a/fbench/src/httpclient/httpclient.cpp +++ b/fbench/src/httpclient/httpclient.cpp @@ -148,7 +148,7 @@ HTTPClient::Connect(const char *url, bool usePost, const char *content, int cLen if (_keepAlive && _socket->IsOpened() && _socket->Write(req, strlen(req)) == (ssize_t)strlen(req) - && _socket->Write(content, cLen) == (ssize_t)cLen + && (!usePost || _socket->Write(content, cLen) == (ssize_t)cLen) && FillBuffer() > 0) { // DEBUG |