diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 6529e53b..c16ee571 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2681,7 +2681,11 @@ MHD_queue_response (struct MHD_Connection *connection, | |||
2681 | have already sent the full message body */ | 2681 | have already sent the full message body */ |
2682 | connection->response_write_position = response->total_size; | 2682 | connection->response_write_position = response->total_size; |
2683 | } | 2683 | } |
2684 | if (MHD_CONNECTION_HEADERS_PROCESSED == connection->state) | 2684 | if ( (MHD_CONNECTION_HEADERS_PROCESSED == connection->state) && |
2685 | ( (0 == strcasecmp (connection->method, | ||
2686 | MHD_HTTP_METHOD_POST)) || | ||
2687 | (0 == strcasecmp (connection->method, | ||
2688 | MHD_HTTP_METHOD_PUT))) ) | ||
2685 | { | 2689 | { |
2686 | /* response was queued "early", | 2690 | /* response was queued "early", |
2687 | refuse to read body / footers or further | 2691 | refuse to read body / footers or further |