diff options
author | pixel <pixel> | 2007-06-17 15:51:26 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-06-17 15:51:26 +0000 |
commit | 9ddabaa8646f39b2a84027ae653668f8ed8f0548 (patch) | |
tree | 816a754c7f3e895bf6330dae32b8f2c6dafd9204 /lib | |
parent | a3ab75b196d03412493eb9fbf70ead4592857972 (diff) |
POST method was a bit shifted.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/HttpClient.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/HttpClient.cc b/lib/HttpClient.cc index 8e6bb58..45aceb3 100644 --- a/lib/HttpClient.cc +++ b/lib/HttpClient.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: HttpClient.cc,v 1.12 2007-06-17 15:44:25 pixel Exp $ */ +/* $Id: HttpClient.cc,v 1.13 2007-06-17 15:51:26 pixel Exp $ */ #include <TaskMan.h> #include <HttpClient.h> @@ -86,12 +86,13 @@ int HttpClient::Do() throw (GeneralException) { rendered_variables += vars[j]; } b << "Content-Type: application/x-www-form-urlencoded\r\n"; - b << "Content-Length: " + String(rendered_variables.strlen()) + "\r\n\r\n"; + b << "Content-Length: " + String(rendered_variables.strlen()) + "\r\n"; } b << "\r\n"; - b << rendered_variables; + if (do_post) + b << rendered_variables; c = new CopyJob(&b, &Client); WaitFor(timeout); |