diff options
-rw-r--r-- | main/SAPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index a82f47b63e..e967f6d0ed 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -97,7 +97,7 @@ SAPI_API void sapi_free_header(sapi_header_struct *sapi_header) SAPI_API void sapi_handle_post(void *arg SLS_DC) { - if (SG(request_info).post_entry) { + if (SG(request_info).post_entry && SG(request_info).content_type_dup) { SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg SLS_CC); if (SG(request_info).post_data) { efree(SG(request_info).post_data); |