diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index fbcbffc2..c82278cb 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -1795,8 +1795,13 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
1795 | if (((MHD_YES == connection->read_closed) && | 1795 | if (((MHD_YES == connection->read_closed) && |
1796 | (0 == connection->read_buffer_offset)) || | 1796 | (0 == connection->read_buffer_offset)) || |
1797 | (connection->version == NULL) || | 1797 | (connection->version == NULL) || |
1798 | (0 != strcasecmp (MHD_HTTP_VERSION_1_1, connection->version))) | 1798 | (connection->method == NULL) || |
1799 | ( (0 != strcasecmp (MHD_HTTP_METHOD_HEAD, connection->method)) && | ||
1800 | (0 != strcasecmp (MHD_HTTP_METHOD_GET, connection->method)) ) || | ||
1801 | (0 != strcasecmp (MHD_HTTP_VERSION_1_1, connection->version))) | ||
1799 | { | 1802 | { |
1803 | /* http 1.0, version-less or non-HEAD/GET requests cannot be | ||
1804 | pipelined */ | ||
1800 | connection->state = MHD_CONNECTION_CLOSED; | 1805 | connection->state = MHD_CONNECTION_CLOSED; |
1801 | MHD_pool_destroy (connection->pool); | 1806 | MHD_pool_destroy (connection->pool); |
1802 | connection->pool = NULL; | 1807 | connection->pool = NULL; |