aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r--src/daemon/connection.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index fa6450be..21b7872c 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -111,7 +111,7 @@ MHD_queue_response(struct MHD_Connection * connection,
111 (connection->response != NULL) || 111 (connection->response != NULL) ||
112 (connection->bodyReceived == 0) || 112 (connection->bodyReceived == 0) ||
113 (connection->headersReceived == 0) ) 113 (connection->headersReceived == 0) )
114 return MHD_NO; 114 return MHD_NO;
115 MHD_increment_response_rc(response); 115 MHD_increment_response_rc(response);
116 connection->response = response; 116 connection->response = response;
117 connection->responseCode = status_code; 117 connection->responseCode = status_code;
@@ -552,6 +552,9 @@ MHD_call_connection_handler(struct MHD_Connection * connection) {
552 abort(); /* bad timing... */ 552 abort(); /* bad timing... */
553 ah = MHD_find_access_handler(connection); 553 ah = MHD_find_access_handler(connection);
554 processed = connection->readLoc; 554 processed = connection->readLoc;
555 /* FIXME: in case of POST, we need to
556 process the POST data here as well
557 (adding to the header list! */
555 if (MHD_NO == ah->dh(ah->dh_cls, 558 if (MHD_NO == ah->dh(ah->dh_cls,
556 connection, 559 connection,
557 connection->url, 560 connection->url,
@@ -766,7 +769,7 @@ MHD_connection_handle_write(struct MHD_Connection * connection) {
766 } 769 }
767 return MHD_YES; 770 return MHD_YES;
768 } 771 }
769 if (response->total_size <= connection->messagePos) 772 if (response->total_size < connection->messagePos)
770 abort(); /* internal error */ 773 abort(); /* internal error */
771 if (response->crc != NULL) 774 if (response->crc != NULL)
772 pthread_mutex_lock(&response->mutex); 775 pthread_mutex_lock(&response->mutex);