mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- Fixed bug #52674 (FPM Status page returns inconsistent Content-Type headers).
This commit is contained in:
parent
4cda8a7797
commit
f5e38e30b6
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue