File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1778,7 +1778,7 @@ consult the installation file that came with this distribution, or visit \n\
1778
1778
return FAILURE ;
1779
1779
}
1780
1780
1781
- if (fpm_status_handle_status (SG (request_info ).request_uri , & status_buffer )) {
1781
+ if (! strcasecmp ( SG ( request_info ). request_method , "GET" ) && fpm_status_handle_status (SG (request_info ).request_uri , & status_buffer )) {
1782
1782
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/plain" ), 1 , 1 TSRMLS_CC );
1783
1783
if (status_buffer ) {
1784
1784
int i ;
@@ -1792,7 +1792,7 @@ consult the installation file that came with this distribution, or visit \n\
1792
1792
goto fastcgi_request_done ;
1793
1793
}
1794
1794
1795
- if (status_buffer = fpm_status_handle_ping (SG (request_info ).request_uri )) {
1795
+ if (! strcasecmp ( SG ( request_info ). request_method , "GET" ) && ( status_buffer = fpm_status_handle_ping (SG (request_info ).request_uri ) )) {
1796
1796
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/plain" ), 1 , 1 TSRMLS_CC );
1797
1797
SG (sapi_headers ).http_response_code = 200 ;
1798
1798
PUTS (status_buffer );
You can’t perform that action at this time.
0 commit comments