Permalink
Browse files

Fix bug where content type returned for response could be corrupted w…

…hen using embedded mode.
  • Loading branch information...
GrahamDumpleton committed May 7, 2012
1 parent 8b4b18e commit b0a149c1f5e569932325972e2e20176a42e43517
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod_wsgi.c
View
@@ -3252,7 +3252,7 @@ static int Adapter_output(AdapterObject *self, const char *data, int length,
if (*self->config->process_group)
r->content_type = apr_pstrdup(r->pool, value);
else
- ap_set_content_type(r, value);
+ ap_set_content_type(r, apr_pstrdup(r->pool, value));
#endif
}
else if (!strcasecmp(name, "Content-Length")) {

0 comments on commit b0a149c

Please sign in to comment.