diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index e49bfe9a..0d7ba27b 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -4234,6 +4234,17 @@ MHD_queue_response (struct MHD_Connection *connection, | |||
4234 | return MHD_NO; | 4234 | return MHD_NO; |
4235 | } | 4235 | } |
4236 | #endif /* UPGRADE_SUPPORT */ | 4236 | #endif /* UPGRADE_SUPPORT */ |
4237 | if ( (100 > (status_code & (~MHD_ICY_FLAG))) || | ||
4238 | (999 < (status_code & (~MHD_ICY_FLAG))) ) | ||
4239 | { | ||
4240 | #ifdef HAVE_MESSAGES | ||
4241 | MHD_DLOG (daemon, | ||
4242 | _ ("Refused wrong status code (%u). " \ | ||
4243 | "HTTP required three digits status code!\n"), | ||
4244 | (status_code & (~MHD_ICY_FLAG))); | ||
4245 | #endif | ||
4246 | return MHD_NO; | ||
4247 | } | ||
4237 | MHD_increment_response_rc (response); | 4248 | MHD_increment_response_rc (response); |
4238 | connection->response = response; | 4249 | connection->response = response; |
4239 | connection->responseCode = status_code; | 4250 | connection->responseCode = status_code; |