diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index ec261963..5139ae0c 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -131,6 +131,13 @@ MHD_queue_response(struct MHD_Connection * connection, | |||
131 | MHD_increment_response_rc(response); | 131 | MHD_increment_response_rc(response); |
132 | connection->response = response; | 132 | connection->response = response; |
133 | connection->responseCode = status_code; | 133 | connection->responseCode = status_code; |
134 | if ( (connection->method != NULL) && | ||
135 | (0 == strcasecmp(connection->method, | ||
136 | MHD_HTTP_METHOD_HEAD)) ) { | ||
137 | /* if this is a "HEAD" request, pretend that we | ||
138 | have already sent the full message body */ | ||
139 | connection->messagePos = response->total_size; | ||
140 | } | ||
134 | return MHD_YES; | 141 | return MHD_YES; |
135 | } | 142 | } |
136 | 143 | ||