diff options
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); |