we were setting SG(request_info).content_type to NULL, instead of
an empty string. This was stopping PHP from processing the data.
static void init_request_info(SLS_D)
{
char *content_length = getenv("CONTENT_LENGTH");
+ char *content_type = getenv("CONTENT_TYPE");
const char *auth;
#if 0
SG(request_info).request_uri = getenv("SCRIPT_NAME");
}
SG(request_info).path_translated = NULL; /* we have to update it later, when we have that information */
- SG(request_info).content_type = getenv("CONTENT_TYPE");
+ SG(request_info).content_type = (content_type ? content_type : "" );
SG(request_info).content_length = (content_length?atoi(content_length):0);
SG(sapi_headers).http_response_code = 200;