diff options
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r-- | src/microhttpd/response.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index e12b44a8..fbee6308 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -895,8 +895,15 @@ MHD_set_response_options (struct MHD_Response *response, | |||
895 | enum MHD_Result ret; | 895 | enum MHD_Result ret; |
896 | enum MHD_ResponseOptions ro; | 896 | enum MHD_ResponseOptions ro; |
897 | 897 | ||
898 | if ( (0 != (response->flags & MHD_RF_INSANITY_HEADER_CONTENT_LENGTH)) && | ||
899 | (0 == (flags & MHD_RF_INSANITY_HEADER_CONTENT_LENGTH))) | ||
900 | { /* Request to remove MHD_RF_INSANITY_HEADER_CONTENT_LENGTH flag */ | ||
901 | if (0 != (response->flags_auto & MHD_RAF_HAS_CONTENT_LENGTH)) | ||
902 | return MHD_NO; | ||
903 | } | ||
898 | ret = MHD_YES; | 904 | ret = MHD_YES; |
899 | response->flags = flags; | 905 | response->flags = flags; |
906 | |||
900 | va_start (ap, flags); | 907 | va_start (ap, flags); |
901 | while (MHD_RO_END != (ro = va_arg (ap, enum MHD_ResponseOptions))) | 908 | while (MHD_RO_END != (ro = va_arg (ap, enum MHD_ResponseOptions))) |
902 | { | 909 | { |