summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/SAPI.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index c11a8b4037..630b5a2b31 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -160,6 +160,7 @@ static void sapi_read_post_data(TSRMLS_D)
SG(request_info).post_entry = NULL;
if (!sapi_module.default_post_reader) {
/* no default reader ? */
+ SG(request_info).content_type_dup = NULL;
sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type);
return;
}