diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-06-28 14:48:29 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-06-28 14:48:29 +0000 |
commit | e04f6c4b852480817edeb6b718d9ac5311fcba1f (patch) | |
tree | 1b33e7f379282dc791640b087d51b335cf7e6830 /src | |
parent | e20a9ae6460ba00b0e7994e16cdb063ea802a09a (diff) | |
download | gnunet-e04f6c4b852480817edeb6b718d9ac5311fcba1f.tar.gz gnunet-e04f6c4b852480817edeb6b718d9ac5311fcba1f.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/plugin_transport_http.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 485fccc49..c809b2c3e 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c | |||
@@ -669,7 +669,6 @@ accessHandlerCallback (void *cls, | |||
669 | /* Is it a PUT or a GET request */ | 669 | /* Is it a PUT or a GET request */ |
670 | if (0 == strcmp (MHD_HTTP_METHOD_PUT, method)) | 670 | if (0 == strcmp (MHD_HTTP_METHOD_PUT, method)) |
671 | { | 671 | { |
672 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"PUT, Upload size: %u addrlen %u\n", *upload_data_size, con->addrlen); | ||
673 | if ((*upload_data_size == 0) && (con->is_put_in_progress==GNUNET_NO)) | 672 | if ((*upload_data_size == 0) && (con->is_put_in_progress==GNUNET_NO)) |
674 | { | 673 | { |
675 | con->is_put_in_progress = GNUNET_YES; | 674 | con->is_put_in_progress = GNUNET_YES; |
@@ -690,10 +689,10 @@ accessHandlerCallback (void *cls, | |||
690 | return res; | 689 | return res; |
691 | } | 690 | } |
692 | 691 | ||
693 | /* Transmission of all data complete */ | 692 | /* Recieving data */ |
694 | if ((*upload_data_size > 0) && (con->is_put_in_progress == GNUNET_YES)) | 693 | if ((*upload_data_size > 0) && (con->is_put_in_progress == GNUNET_YES)) |
695 | { | 694 | { |
696 | res = GNUNET_SERVER_mst_receive(con->msgtok, cs, upload_data,*upload_data_size, GNUNET_YES, GNUNET_NO); | 695 | res = GNUNET_SERVER_mst_receive(con->msgtok, con, upload_data,*upload_data_size, GNUNET_NO, GNUNET_NO); |
697 | (*upload_data_size) = 0; | 696 | (*upload_data_size) = 0; |
698 | return MHD_YES; | 697 | return MHD_YES; |
699 | } | 698 | } |