diff options
author | Jérôme Loyet <fat@php.net> | 2010-08-23 20:40:44 +0000 |
---|---|---|
committer | Jérôme Loyet <fat@php.net> | 2010-08-23 20:40:44 +0000 |
commit | f9c6bb1ad84312ac1de39f2b57bfcfff5b8ad022 (patch) | |
tree | c95ad656d0d336530ed30177035abf0f0a02d6df /sapi | |
parent | 411d09089575c1340f4e9b428428217424b1acfc (diff) | |
download | php-git-f9c6bb1ad84312ac1de39f2b57bfcfff5b8ad022.tar.gz |
- Fixed bug #52674 (FPM Status page returns inconsistent Content-Type headers).
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/fpm/fpm/fpm_status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/fpm/fpm/fpm_status.c b/sapi/fpm/fpm/fpm_status.c index a9d30cf273..50efaf8df1 100644 --- a/sapi/fpm/fpm/fpm_status.c +++ b/sapi/fpm/fpm/fpm_status.c @@ -138,7 +138,7 @@ static void fpm_status_handle_status_txt(struct fpm_status_s *status, char **out "total processes: %d\n", status->accepted_conn, fpm_status_pool, status->pm == PM_STYLE_STATIC ? "static" : "dynamic", status->idle, status->active, status->total); - spprintf(content_type, 0, "text/plain"); + spprintf(content_type, 0, "Content-Type: text/plain"); } /* }}} */ @@ -159,7 +159,7 @@ static void fpm_status_handle_status_html(struct fpm_status_s *status, char **ou "</table>", status->accepted_conn, fpm_status_pool, status->pm == PM_STYLE_STATIC ? "static" : "dynamic", status->idle, status->active, status->total); - spprintf(content_type, 0, "text/html"); + spprintf(content_type, 0, "Content-Type: text/html"); } /* }}} */ @@ -180,7 +180,7 @@ static void fpm_status_handle_status_json(struct fpm_status_s *status, char **ou "}", status->accepted_conn, fpm_status_pool, status->pm == PM_STYLE_STATIC ? "static" : "dynamic", status->idle, status->active, status->total); - spprintf(content_type, 0, "application/jsonrequest"); + spprintf(content_type, 0, "Content-Type: application/json"); } /* }}} */ |